Lack of interest Make $contentTemplate available in all templates

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

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:
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.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom