XF 2.0 How can I create a page with output of different categories?

SkyLoKi

Member
How can I create a page with output of different categories?

For example, this structure of the forum:

First category
- Section of the first category

Second category
Section of the second category

Third category
- Section of the third category

And I need to display the following on the page I created:
First category
- Section of the first category

Third category
- Section of the third category

Now I have this kind of code gets information about the categories I need.

PHP:
/** @var \XF\Entity\Category $forums */
$forums = $this->finder('XF:Category')->whereOr([['node_id', $tab->node_ids]])->fetch();

But what's next?
 
Last edited:
Back
Top Bottom