[nodebb-script-category-dropdown] Category Dropdown Widget
-
Very simple widget that creates a dropdown of categories for you to choose from. The screenshot is placing the dropdown in the "custom homepage" plugin's header widget area.
As always, just copy and paste the script into a HTML widget, and place it anywhere you like. Get the script on GitHub.
p.s. If you're using the custom homepage mod, switch the api call to
/api/forum
instead of/api/home
. -
You mentioned that this could be repurposed to provide for a "New Topic" button. It seems like it would be easy but I can't figure it out. Any tips on what to stick where?
-
@Kamal-Patel said:
You mentioned that this could be repurposed to provide for a "New Topic" button. It seems like it would be easy but I can't figure it out. Any tips on what to stick where?
Copy and paste from the Gist file provided by @psychobunny and place it somewhere in the
category.tpl
template. It's pretty simple. As for any tips on where it should go, perhaps you could put it somewhere between line16
thru40
in thecategory.tpl
(Lavender) -
What is this
nodebb-script
magic that I must've missed.Edit: nvm I'm dumb and didn't read enough. Haven't had my coffee yet.