Conditional to not show ad on index page

Blue

Well-known member
How do I use this to not show on the index page and to show on all other pages in ad_above_top_breadcrumb?

How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>
 

Blue

Well-known member
Code:
<xen:if is="{$contentTemplate} != 'forum_list'">
 
</xen:if>
So the opposite, to show only on the forum list page would be
Code:
<xen:if is="{$contentTemplate} = 'forum_list'">
 
</xen:if>
One step further, I want to show different ads for each code. I guess that would require an OR. I'm not quite sure how to do that properly.
 

Jake Bunce

XenForo moderator
Staff member
So the opposite, to show only on the forum list page would be
Code:
<xen:if is="{$contentTemplate} = 'forum_list'">
 
</xen:if>
One step further, I want to show different ads for each code. I guess that would require an OR. I'm not quite sure how to do that properly.
Double ==

Different ads for each node? What is the condition?
 

Jake Bunce

XenForo moderator
Staff member
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">

</xen:if>

<xen:if is="{$contentTemplate} == 'forum_view'">

</xen:if>

<xen:if is="{$contentTemplate} == 'thread_view'">

</xen:if>
 
Top