[nodebb-plugin-header-extend] Custom links in the site's main menu
-
@yeelan0319 as it currently stands, it is not possible to do this. You could hide all of the default icons and only add ones with the plugin, I guess, but the order still isn't guaranteed. I might stay working on a pull request to add what I need into core after I'm done with the Calendar and Forms plugins.
-
@a_5mith Huh. Look at that. Although it doesn't look like it's possible to rearrange everything yet.
-
@a_5mith I don't think the new Navigation settings page lets you add custom links as menu items in the navbar. You can only add routes under the url.
For e.g., you can't add blog.example.com using these settings.
-
@baris I see, so http:// or https:// is required for custom links. It won't work if I just type www.youtube.com
-
You can rearrange them, there's another bit on the same page. I removed recent from my site and replaced it with a custom link for categories and put it in its place.
-
@pitaj I am not sure whether you intend to incorporate the functionality for adjusting the original navigation item or not. I made some change to your plugin and send you the pull-request
The basic idea behind the change is that I remove the original render logic from menu.tpl and all the navigation is actually rendering through the plugin right now. I remained the admin render logic since it request extra checking logic, which I am not sure how to get via plugin yet. So if the user activate the plugin, it won't render any navigation item before user set it up. In case user do want to revise from the default setting, I provided an extra button within the plugin page called "reset to default", so it will reset the navigation items to the original menu.tpl one.
See if you like it. -
Does this plugin still works with the latest version. Was trying to find a way to be able to direct to external url with the header menu
-
@linan2332 said in [nodebb-plugin-header-extend] Custom links in the site's main menu:
Does this plugin still works with the latest version. Was trying to find a way to be able to direct to external url with the header menu
This has been integrated into NodeBB itself. have a look at "General/Navigation" in the admin panel.
-
@tigger I have a plan to rewrite this plugin to do exactly that at a later time.
-
@fais3000 nope the plugin hasn't been compatible in a long time.
-
@pitaj I was afraid of that Do you have any suggestion to do a drop down in navigation without updating the tpl files? Went with that route before, works till persona has breaking changes. Would love it if there was some non fragile way to do it.
-
@fais3000 you can use a child theme or a template plugin to do so.