Which is the simplest way to get 'isSection' and 'link' properties of categories to render 'account/categories' pages ? I need them for my account/categories.tpl template.
Thanks in advance for help !
I need to put the navigation to the sidebar.I found the navigation code block is in node_modules/nodebb-theme-persona/templates/partials/menu.tpl and I want to move the navigation to sidebar .How could I do this or even if I have some sample
@田恩睿 Thanks for posting.
If you search the Persona theme
menu.tpl, you'll see that it is
IMPORTed into the header: https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35
The easiest way to move this somewhere else would be to move that
<!-- IMPORT line somewhere else.
Thanks for reply. But I pasted the menu.tpl import to the categories.tpl .But the navigtion could not show in the left-side bar. Did I need to set the categories in somewhere?
@田恩睿 No, you cannot just move that partial to a different place and expect it to work, because the underlying data is not there.
For the menu, it is contained within the header files, so you can only really move it within
Is there a reason you want the menu only in categories.tpl? It would mean that other places would not have a menu at all.
@julian got it.I need to move the menu to the left-side bar. Where could I find the underlying data.
@田恩睿 It's probably better to keep the menu where it is, or at least in that file, but play around with the structure and CSS to have a left-side menu.
Right now it is pinned to the top using