XF 2.2 Possible to show in category only?

frm

Well-known member
Is there a way to make forum nodes only display when accessed by the category and not on the homepage only?

Example:
1644497783523.png

Then under "Official forums" it would show them all:

1644497911406.png

(I realized after making this question that Xenforo's own board is set up to link to anchored links on the index and not separately)
 
Solution
If I'm understanding what you asked,

Go to setup > options > node & forum list > enable create pages for categories

Then in extra.less add
CSS:
[data-template="forum_list"] .node.node--idX {
    display: none;
}
Change X to the id of the node you're hiding from the forum list.

Then if you go to yoursite.com/categories/category.X/ you should see that the node you hid can still be seen within the category page.

sixlxvi

Well-known member
If I'm understanding what you asked,

Go to setup > options > node & forum list > enable create pages for categories

Then in extra.less add
CSS:
[data-template="forum_list"] .node.node--idX {
    display: none;
}
Change X to the id of the node you're hiding from the forum list.

Then if you go to yoursite.com/categories/category.X/ you should see that the node you hid can still be seen within the category page.
 
  • Like
Reactions: frm
Solution
Top