Does any one know how i can go about making the New Topic button have a sub menu on certain categories?
Currently i have this
But was hoping to get something like this when the “New Topic” button is clicked
I can think of a few ways to do this but not sure if i’m over thinking it, hiding the stock button and adding a whole new button with the dropdown was one of the ideas i had.
This is the current code i have, before i do it the way i said above, is there a way to just add a menu entry easily?
<script type="text/x-handlebars" data-template-name="/connectors/before-create-topic-button/syncbutton"> <button onclick="window.location.href='/w/issue-with-sync3'" class="btn-default btn btn-icon-text ember-view customnewtopicbtn" title="Create a new topic using the SYNC 3 Issue template"> <svg class="fa d-icon d-icon-plus svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#plus"></use></svg> <span class="d-button-label">New Sync Issue</span> </button> </script>
Also if i do hide the “Create Topic” button is there some variable or function i can use to retrive the link for the “New Topic” button?
EDIT: or rather how is the New Topic section opened, i thought it would be from clicking the button matching a ID or class but it seems this isn’t the case?