i want to have two Create a new Topic buttons on my community page.
is it possible ?
I want to have one button for creating a community post.
Other button to create a Idea.
Please confim.
A user asks if itās possible to have two separate āCreate a new Topicā buttons on their community pageāone for community posts and another for ideas. simon explains that while Discourse doesnāt natively support this, it could be achieved via a theme component or plugin. Heliosurge suggests using direct URLs to pre-select categories, such as https://meta.discourse.org/new-topic?category=feature, and references a welcome link banner as a potential solution. Don points to a theme component that converts the new topic button into a dropdown menu, allowing users to choose different categories, with a GitHub repo available for implementation. The user thanks everyone for the responses.
i want to have two Create a new Topic buttons on my community page.
is it possible ?
I want to have one button for creating a community post.
Other button to create a Idea.
Please confim.
HI @Srujan_Madderla, welcome to the Discourse Meta forum!
Discourse does not provide a way of doing this, but possibly the functionality could be added through a theme component or plugin. If you are new to Discourse, theme components allow you to add client side code to your siteās theme. Plugins can run server side code. It is generally easier to develop and install theme components than it is to install plugins.
Iām curious about the button to create an āIdea.ā What is an Idea in your use case? Would it be a topic in a private category, a message sent to a group, or something else?
Need more context.
A Customization > Theme component as @simon has said would be needed.
Welcome Link Banner might work.
If community and idea are categories this url link can work
https://meta.discourse.org/new-topic?category=feature
swap āmeta.discourse.orgā with your domain name
swap āfeatureā with category slug name.
The above url will start a new topic in feature.
Hello ![]()
Actually there is an elegant solution which makes dropdown from the new topic button. Convert the New Topic button to a have a sub menu - #7 by awesomerobot
It looks like the theme component version of this is here available: GitHub - discourse/discourse-new-topic-dropdown: Turns the New Topic button into a dropdown with a custom option added Ā· GitHub
Thank you for the response.
Very nice find!