I guess best behaviour would be to start the composer with empty category if the user does not have the permission to create new topic in the current one? Potentially with a modal and a notice about such.
I wanted to have this functionality as well so I forked the repo and made it show the “New Topic” button to anonymous as well as logged in users. If an anonymous user clicks the button, they get redirected to the login/signup modal.
There’s some outdated class names, so the styles don’t show as intended. Added a pr to update them: FIX: update declarations by nolosb · Pull Request #6 · discourse/discourse-new-topic-button-theme-component · GitHub
Is it possible to update this plugin to the new version?
I’ve just merged a refactor of this component so it will work with these updates: Upcoming Header Changes - Preparing Themes and Plugins
The component should function as it did before, with some small enhancements (it will reflect draft state and react to the current category and tag permissions). If you notice any new issues please let us know.
![](https://d3bpeqsaub0i6y.cloudfront.net/user_avatar/meta.discourse.org/lollop/48/274014_2.png)
I wanted to have this functionality as well so I forked the repo and made it show the “New Topic” button to anonymous as well as logged in users. If an anonymous user clicks the button, they get redirected to the login/signup modal.
I’ve just added a new show_to_anon
setting (disabled by default) that will do this.
How “feasible” would it be to add a dropdown menu just like in nolo’s dropdown wizard component?
Since we are using the custom wizard to create new topics in specific categories, we would like to basically link those in the dropdown menus. In addition we would also like to add some staff-only links (such as “New category” and “New group”) to the button.
Hi, I have been unable to use the “pencil” fontawesome free icon in this component even after adding it to the “svg icon subset” settings. Any idea?
![](https://d3bpeqsaub0i6y.cloudfront.net/user_avatar/meta.discourse.org/patrickemin/48/387284_2.png)
“pencil” fontawesome free icon
I don’t think there is a free pencil
icon in version 5
We’re not on Font Awesome 6 yet, so you’ll need to search the version 5 set for available icons here: Find the Perfect Icon for Your Project in Font Awesome 5 | Font Awesome It looks like that icon was renamed shop in version 6, but it did exist in version 5 with a different name: store-alt. So if you update additional icons and custom tab icon to use store-alt it should work!
I think it’s the same for pencil in v5 it’s pencil-alt
![](https://d3bpeqsaub0i6y.cloudfront.net/user_avatar/meta.discourse.org/moin/48/386795_2.png)
I think it’s the same for pencil in v5 it’s
pencil-alt
Thanks ! It works !