1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

How to move sub-forums to below the thread list

Discussion in 'Template Modifications [Archive]' started by Brogan, Nov 23, 2010.

Thread Status:
Not open for further replies.
  1. Brogan

    Brogan XenForo Moderator Staff Member

    Open the forum_view template and find this code:
    HTML:
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    Then move it to below this code:
    HTML:
    <div class="discussionList section sectionMain">
        <xen:include template="thread_list" />
    </div>

    You will need a line break though or the "Thread Display Options" tab will overlap.
    Your final code should look like this:
    HTML:
    <div class="discussionList section sectionMain">
        <xen:include template="thread_list" />
    </div>
    <br/>
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>

    If you want the navigation links above the sub-forums then move the first block of code posted above to the very end of the template, like so:
    HTML:
    <div class="pageNavLinkGroup">
    	<div class="linkGroup">
    		<xen:if is="{$canPostThread}">
    			<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
    		<xen:else />
    			{xen:phrase no_permission_to_post}
    		</xen:if>
    	</div>
    
    	<xen:pagenav link="forums" linkdata="{$forum}" linkparams="{$pageNavParams}" page="{$page}" perpage="{$threadsPerPage}" total="{$totalThreads}" />
    </div>
    
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>

    The end result of the bottom edit is this:
    sub-forums.PNG
     
  2. Vincent

    Vincent Well-Known Member

    Nice!
     
  3. Skeletor

    Skeletor Member

    Thanks Brogan. Yo da man!

    It would be nice if we could set this in the "Forum List" options under the "Style Properties" section in AdminCP

    Move sub-forums to below the thread list

    :D
     
    Gustavo Fernandez likes this.
Thread Status:
Not open for further replies.

Share This Page