How can I create a page with output of different categories?
For example, this structure of the forum:
And I need to display the following on the page I created:
Now I have this kind of code gets information about the categories I need.
But what's next?
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: