Hello !
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 templates/
for menu.tpl
, you'll see that it is IMPORT
ed 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.
@julian said in Move theme's navigation:
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35
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?
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/menu.tpl#L229
@田恩睿 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 header.tpl
.
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 .navbar-fixed-top