XF 1.1 Conditional for forumlist?


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.


Well-known member
Edit the node_list template.

so its like:

<xen:require css="node_list.css" />
Advert code here
<xen:if hascontent="true">
    <ol class="nodeList sectionMain" id="forums">
        <xen:foreach loop="$renderedNodes" value="$node">{xen:raw $node}</xen:foreach>
    <xen:if is="{$newDiscussionButton}"><div class="nodeListNewDiscussionButton">{xen:raw $newDiscussionButton}</div></xen:if>


Well-known member
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