Summary |
Topic Footer Button defines a button visible at the bottom of your topic to open a URL of your choice. Group Topic Footer Button defines a button visible at the bottom of your topic to open a URL of your choice, with added group visibility options. |
|
Repository Link(s) |
https://github.com/discourse/discourse-custom-topic-button-component https://github.com/discourse/discourse-topic-group-button-component |
|
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install the Topic Button theme component
Install the Group Button theme component
Hi, let me introduce you to two new simple theme components which have essentially the same goal but are slightly different:
This component will let you define a button visible at the bottom of your topic to open a URL of your choice.
You can customise label/title/icon/link. Links accept multiple placeholders:
<TOPIC_ID>
<USER_ID>
<USERNAME>
<TOPIC_TITLE>
<TOPIC_SLUG>
which will be replaced accordingly.
Has the same behaviour, except you can define a group to limit the visibility of this button.
These components are very simple right now, we could improve them in the future if we see real usage of them and issues.