Floren
Well-known member
I recently wanted to use a conditional that filters what is displayed in a template based on the page viewed. For example, I cannot use $contentTemplate in 'node_forum_level_2' template:
it eval's to an empty string. Adding a variable to $node would be the most elegant solution, so we can call it with:
Thanks for adding this, much appreciated.
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
Do some stuff
</xen:if>
Code:
<xen:if is="{$forum.contentTemplate} == 'forum_list'">
Do some stuff
</xen:if>
Thanks for adding this, much appreciated.
Upvote
0