Search
Other Articles Anywhere questions
Forum

if-structure and article field value

Hitsch's Avatar Hitsch
In an article, we only want to display the value of an article field if it links to a specific article.

What should the if-structure be correctly, so that the article field is only displayed if it links to an article with one of the ids x,y,z?
{article {if my-custom-field:id=x,y,z}[my-custmom-field_html="[title]{/if}{/article}
Peter van Westen's Avatar Peter van Westen ADMIN
You can't place {if} tags inside the {article} tags.

You probably want something like this:
{article id="current" my-custom-field="x,y,z"}[my-custom-field custom-html="[title]"]{/article}
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription