• 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

Status
Not open for further replies.

Paul B

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.webp
 
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
 
Status
Not open for further replies.
Top Bottom