NURV
Active member
Hi, how can I display content from a template differently when loaded through the forum_list template than when loaded through the forum_view template? I am trying to display a slightly different node_forum_level_2 template for the homepage vs. the forum view page. I have tried the following code with no luck. In fact, nothing shows at all:
Neither one displays anything.
According to Brogan's conditional guide, including how to find the correct template names, this should work.
Via: https://xenforo.com/community/resources/conditional-statements.1604/
Help would be greatly appreciated.
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
Display content version 1
</xen:elseif />
Display content version 2
</xen:if>
Neither one displays anything.
According to Brogan's conditional guide, including how to find the correct template names, this should work.
24. How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>
Via: https://xenforo.com/community/resources/conditional-statements.1604/
Help would be greatly appreciated.