XF 2.2 A root-level forum with sub-forums - not possible?

Steve Freides

Active member
I am reorganizing our forum and having a problem.

When I move a forum out of a category by changing its parent node to "None", it works only if the forum did not have sub-forums.

When I move a forum out of a category by changing its parent node to "None" and there were sub-forums, all the sub-forums then appear as children of "None" and not children of the original parent forum.

If someone could explain and/or tell me what I need to do there, that would be great. My directive has been to simplify our forum's structure, and to that end I am aiming to have only a few forums with parent of "None", remove all my current Categories, and have any child forums live below a parent forum - that's what doesn't work for me now, as explained above.

Thanks in advance for your replies.

I am running v2.2.6 Patch 2

-S-
 

Brogan

XenForo moderator
Staff member
Child nodes of nodes which are in the root and have no parent are displayed as siblings - at the same level.

It isn't possible to have them displayed as children.
 

Steve Freides

Active member
Child nodes of nodes which are in the root and have no parent are displayed as siblings - at the same level.

It isn't possible to have them displayed as children.
I request that this be made possible in a future version, please. Why it works this way makes no sense to me. Thank you.

-S-
 

Seeker-Smith

Well-known member
I think if I understand you you are trying to do what I've done. I created a master node and then I was able to do lot's more with display.
 

Attachments

  • nodes.png
    nodes.png
    113.1 KB · Views: 25

Steve Freides

Active member
I think if I understand you you are trying to do what I've done. I created a master node and then I was able to do lot's more with display.
Ah, that sounds like a good workaround and I will try it shortly.

Why does this limitation exist, though, I wonder? XF is such brilliantly flexible software, IMO - seems odd that it can't do this one thing.

-S-
 

Seeker-Smith

Well-known member
No home is a "page" with site info, then "Welcome" is a category node. The page does not effect the rest. I use the blanks because I use THnodes and I want to fill a section.
 

Steve Freides

Active member
You can then edit child forums and make them again child from the original forum. More work, but it should work. Most important is that you don't lose forums. Then you can sort them as you prefer.
I tried exactly that but it didn’t work. They remained appearing as children of the root even though I specified something else. That’s what got me so puzzled.

-S-
 

beerForo

Well-known member
I had the same issue and some of the answers are here as to why they do it.
 

Orit

Member
Child nodes of nodes which are in the root and have no parent are displayed as siblings - at the same level.

It isn't possible to have them displayed as children.

I think I may have figured a way to get it to work (still using XF 2.1):

In the node_list_forum template do the following:

Search for the line:
<xf:if is="$depth == 2 AND property('nodeListSubDisplay') == 'menu'">
and before the </xf:if> closing tag add the following:
<xf:elseif is="$depth == 1 AND property('nodeListSubDisplay') == 'menu'" />
<xf:macro template="forum_list" name="sub_nodes_menu"
arg-children="{$children}"
arg-childExtras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
Then comment out the following (i.e place it within the <xf:comment></xf:comment> tags):
<xf:if is="{$depth} == 1">
<xf:macro template="forum_list" name="node_list"
arg-children="{$children}"
arg-extras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
</xf:if>

Good luck,
And please let me know if there are any problems with this approach...

:)

(I posted my workaround in a different thread https://xenforo.com/community/threa...-type-node-with-no-parent.188450/post-1536192 , but this thread is more recent so it may be more useful...)
 

FTL

Active member
I'd like to see them listed as sub forums too, but I've noticed that there's still a difference in presentation.

If a node is at the top level and not attached to any other forum, it appears with a space above and below it. If another top level node is created, then there's a gap between those two nodes. If a child node is then attached to one of them, or one of those nodes is made a child of the other, then the gap disappears, so one can still see that they're related.

Still, I think that we should have the option of making them look like second and third level links if we so choose, which is what I'd like to do. It makes for a more compact home page view, if nothing else.

I could put it as a formal suggestion in the upvote forum, but I doubt it's gonna happen. :confused: Maybe it's already been suggested, I dunno.
 

Steve Freides

Active member
@Orit and @FTL,

Thank you both very much for these suggestions and comments. The kind of change @Orit suggests is something I would leave to our developer as I admin our forum but don't make these kinds of changes - I've has passed along a link to this thread to him. And @FTL, yes, it would be nice for us to have control over this very fundamental kind of thing about what our forums look like to our users.

-S-
 
Top