Please help solve the problem. The following fields are available: Author, Title, Creation Date. How to output these fields to a text string, for example, in the following form: "Author // Title - Creation Date". Thanks a lot.
Good day. For some reason it doesn’t work! I tried it differently - it does not work. In addition, I also made the fourth field, in which I output the three indicated fields. I created the fourth field as Form-> Text. "I tried to display any text in HTML, for example <hr> or <p></p> ..... It doesn’t work. Most likely I'm setting something up wrong.
Thanks for your help. Everything worked out. The problem was that in the fourth field there should be some value, which is then rewritten with the code from the HTML. I made this field hidden and set the default value - the result was what I wanted to have.
I have a few more questions:
When I try to insert the Publish Date, the value has format: YEAR-MONTH-DAY HOURS:MINUTES:SECONDS. Is it possible in some way to show only YEAR?
If I have a drop-down field, when I use the following function, the item id is returned, but not its contents. How can I display the content, rather than id?
Thanks for your help. Everything works Perfect now. To solv the problem it is I needed to created field "created_year" locked to the "Article". And thats all. Then I made a typo with needed Date format and $cck->getTypo(‘my_field’); helped me to finish... =) Thank you very mach.