Menu - Where to edit?
-
@erich You'd want to take a look at
partials/menu.tpl
in your theme. Directly editing the files in the vanilla folder is not advised, you should copy it to another theme and muck around with it there (making sure to rename the theme info intheme.json
) -
Alternatively you could build a plugin too:
nodebb-plugin-kitchen-sink/lib/customRoutes.js at master 路 NodeBB/nodebb-plugin-kitchen-sink
This repo will serve as a sample for all action/filter hooks available in NodeBB. - nodebb-plugin-kitchen-sink/lib/customRoutes.js at master 路 NodeBB/nodebb-plugin-kitchen-sink
GitHub (github.com)
Although I much like the idea of yours to expand the custom homepage plugin
-
@psychobunny said:
Alternatively you could build a plugin too:
nodebb-plugin-kitchen-sink/lib/customRoutes.js at master 路 NodeBB/nodebb-plugin-kitchen-sink
This repo will serve as a sample for all action/filter hooks available in NodeBB. - nodebb-plugin-kitchen-sink/lib/customRoutes.js at master 路 NodeBB/nodebb-plugin-kitchen-sink
GitHub (github.com)
Although I much like the idea of yours to expand the custom homepage plugin
I tried this (modifying the custom homepage plugin), and while adding menu items using the concat method works really well, doing things like .unshift to place a menu item at the start does not work at all. also since the filter is called seperately from the main navigation menu, users are forced to modify the theme at the moment (from what it seems atleast).
The custom homepage plugin is awesome, but I wish it could support more pages, as well as a full custom navigation menu.
-
This one's part of a larger problem, which will be fixed at #1481
Something that's on my TODO list this week In a nutshell, the end result is that we'll be able to define and re-order routes in the ACP.