• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Make $contentTemplate available in all templates

Floren

Well-known member
#1
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:
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
Do some stuff
</xen:if>
it eval's to an empty string. Adding a variable to $node would be the most elegant solution, so we can call it with:
Code:
<xen:if is="{$forum.contentTemplate} == 'forum_list'">
Do some stuff
</xen:if>
Thanks for adding this, much appreciated.