• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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.
  • 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.

Brogan

XenForo moderator
Staff member
#1
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
 
Status
Not open for further replies.