dgibs

Customer
I am having trouble getting sub-forums to be listed in a grid like XF1
old site subforum.PNG

however in XF2 version I get
xf2 subforum.PNG


It seems that XF1 created a separate div for subforums below the Node info, but in XF2 the subforums are within the node info div.

Is there a way to get the grid look back?
Thanks david
 

Russ

Pixel Exit Staff
So 2 step process:

Open template: node_list_forum, find this:

Code:
                <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 }}" />
                </xf:if>
And move it....
Code:
            </div>     
        </div>
RIGHTHERE
    </div>

    <xf:if is="{$depth} == 1">
Then in your extra.less:
Code:
.node-subNodesFlat {
    margin: 10px;
    padding: 10px;
    border: 1px solid #CCC;
}
Adjust to whatever you'd like.


I think we can actually get it in as an option... I don't like the placement of the default sub-forums myself.
 

dgibs

Customer
One note I did add this to extra.less
Code:
.node-subNodeFlatList > li {
    display: inline-block;
    margin-bottom: 1px;
    width: 31%;
    float: left;
}
I think you had that in XF1 version, which gave me back the 3 column look.
new 3 column.PNG
 

Russ

Pixel Exit Staff
Still the same edit, check line 86 in that template.

XF2 editor you can't use the browser ctrl-f function anymore just as a heads up. You need to click in the editor first, then hit ctrl f. Also search for single lines, like:

Code:
<xf:if is="$depth == 2 AND property('nodeListSubDisplay') == 'flat'">
and:

Code:
<xf:if is="{$depth} == 1">
 

Alfa1

Customer
Thanks!

I used this:
Code:
.node-subNodeFlatList > li {
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 1px;
    width: 25%;
    float: left;
}
The left margin was needed to keep the node icons from breaking outside the container and to align the subforum node icons with the forum node icon..
 
Last edited:

Steve

Pixel Exit Staff
I posted this on XF.com if anyone is interested.

 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.