XF 1.1 Conditional for forumlist?

Claudio

Well-known member
I want to display an ad on the forum_list template only, so I would like to know which is the conditional to avoid this ad to be shown in other templates like thread_view and thread_list.

By the way...I´m displaying the ads on the sidebar and I have integrated the sidebar into both thread templates.
 
Edit the node_list template.

so its like:

Code:
<xen:require css="node_list.css" />
Advert code here
<xen:if hascontent="true">
<fieldset>
    <ol class="nodeList sectionMain" id="forums">
    <xen:contentcheck>
        <xen:foreach loop="$renderedNodes" value="$node">{xen:raw $node}</xen:foreach>
    </xen:contentcheck>
    </ol>
   
    <xen:if is="{$newDiscussionButton}"><div class="nodeListNewDiscussionButton">{xen:raw $newDiscussionButton}</div></xen:if>
</fieldset>
</xen:if>
 
I´m displaying the ads on the sidebar...

is just that I´m using the sidebar in thread_view and thread_list and I don´t know which conditional I should set to display X ad only on forum_list
 
Top Bottom