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

Not a Bug "ad_forum_view_above_node_list" Template doesn't work

Discussion in 'Resolved Bug Reports' started by cdub, Feb 25, 2015.

  1. cdub

    cdub Well-Known Member

    Whatever I put into this template doesn't show. I've tried on my custom styles and the vanilla XF style.
     
  2. Russ

    Russ Well-Known Member

    It's for when viewing a forum which has sub-forums:

    Screenshot_6.png

    forum_view is inside a node itself, and if there's no sub-forums there's no nodes inside the forum_view.
     
  3. Mike

    Mike XenForo Developer Staff Member

    As noted, it's specifically when there are nodes:
    Code:
    <xen:if is="{$renderedNodes}">
        <xen:include template="ad_forum_view_above_node_list" />
        <xen:include template="node_list" />
        <xen:if is="{$newDiscussionButton}">
            <div class="nodeListNewDiscussionButton">{xen:raw $newDiscussionButton}</div>
        </xen:if>
    </xen:if>
    
    I hesitate to change it now, but you can easily move the include up and outside the if tag, if that suits your needs.
     
  4. Russ

    Russ Well-Known Member

    @cdub you could use: ad_forum_view_above_thread_list
     
  5. cdub

    cdub Well-Known Member

    I use that one... the title of forum_view_above node list makes it seem like it's going to be above the node list on the main forum page.
     
  6. Mike

    Mike XenForo Developer Staff Member

    Note that the "forum_view" reference in the template name is referring to the template it applies to (forum_view). The main page is the forum_list template.
     
  7. cdub

    cdub Well-Known Member


    Gotcha. My bad.
     

Share This Page