[nodebb-script-category-dropdown] Category Dropdown Widget


  • Admin

    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.

    category dropdown

    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.



  • @psychobunny

    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?


  • Plugin & Theme Dev

    @Kamal-Patel said:

    @psychobunny

    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 line 16 thru 40 in the category.tpl (Lavender)


  • Plugin & Theme Dev

    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.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.