Sub-Forums Grid

XenForo Sub-Forums Grid

Styling

Supervisor
  • Thread starter
  • Moderator
  • #1
Styling submitted a new resource:

Sub-Forums Grid - Template Modifications

This template modification displays the sub-forums below the parent node body.

First step: Ensure the style property nodeListSubDisplay is set to "Listed below node", you can find this in Style properties > Node/forum list

Template node_list_forum

Find this bit of code below and copy it to clipboard then delete it.

HTML:
<xf:if is="$depth == 2 AND property('nodeListSubDisplay') == 'flat'">
            <xf:macro template="forum_list" name="sub_nodes_flat"...

Read more about this resource...
 

Styling

Supervisor
  • Thread starter
  • Moderator
  • #2
Styling updated Sub-Forums Grid with a new update entry:

Add support for node categories

Template: node_list_category
Find:
HTML:
    </div>
</xf:macro>
<xf:macro name="depthN" arg-node="!" arg-extras="!" arg-children="!" arg-childExtras="!" arg-depth="1">
Add above:
HTML:
        <xf:if is="$depth == 2 AND property('nodeListSubDisplay') == 'flat'">
            <xf:macro template="forum_list" name="sub_nodes_flat"
                      arg-children="{$children}"
                      arg-childExtras="{$childExtras}"
                      arg-depth="{{ $depth + 1...

Read the rest of this update entry...
 
  • Tags
    sub-forums grid xenforo sub-forums grid
  • Back
    Top Bottom