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

Conditional to not show ad on index page

Blue

Well-known member
#1
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
#3
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
#4
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?