Hello, I have a question regarding multiple "related_pages" listing syntax.
In my main template I have more than one related fields. The code below currently gives me only the first related pages set called 'exhibited_works':
Generally speaking, what I want is to be able to list all of them and eventually have some conditional statements at a later stage, e.g putting a link to detail page if there are any related records etc. Putting || or && gives me an error, so I suppose I'm wrong with the syntax.
Any help will be greatly appreciated, thanks in advance.
In my main template I have more than one related fields. The code below currently gives me only the first related pages set called 'exhibited_works':
- Code: Select all
<cms:pages masterpage='exhibitions.php'>
<cms:related_pages 'exhibited_works' 'exhibited_paintings' 'exhibited_...'>
<cms:show k_page_title /><br/>
</cms:related_pages>
</cms:pages>
Generally speaking, what I want is to be able to list all of them and eventually have some conditional statements at a later stage, e.g putting a link to detail page if there are any related records etc. Putting || or && gives me an error, so I suppose I'm wrong with the syntax.
Any help will be greatly appreciated, thanks in advance.