[nodebb-plugin-header-extend] Custom links in the site's main menu
-
I just now released version 0.0.4
Changes:
- Simplified CSS and removed another JS hack
- Also fixed a small issue where the width wasn't actually wide enough.
-
I nave a suggestion.
When adding text next to the icon it shows up in the navbar and also in the navbar when on a mobile.
When you remove it and just have the icon, only the icon is shown on the navbar and it is also only the icon on the mobile navbar.Is it possible to have the icon only on the normal navbar and then the icon and text on mobile navbar, currently how the defaults are set up?
-
@Scuzz If you check
Show only the icon in desktop menu
, it shows only the icon in the normal navbar, but the icon and the title in the mobile menu.Does it not do the same on your site? Are you on version 0.0.4?
-
Just released version 0.0.5
Changes:
- Menus now only activate on click (to keep consistent with bootstrap)
- Menus now open with awesome animation
- Menus work correctly on mobile
-
Version 0.1.2 is released
Changes:
- Removed ugly JS hack
- Added ability for links to be set to be opened in new tab / window
-
@pitaj said:
nodebb-plugin-header-extend
Hi pitaj,
Thanks for the wonderful plugin. I don't know whether it is possible for you to adjust the default header links as well through the plugin. I think it will be a good idea that so that I can remove the hacks from my custom CSS file.
-
@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.