![]() |
Summary | Topic Sort Order Button |
![]() |
Preview | Theme Creator |
![]() |
Repository | GitHub - VaperinaDEV/custom-topic-sort-order-button: Add a custom topic sorting button to the topic list. |
![]() |
Install Guide | How to install a theme or theme component |
![]() |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Hello
This theme component adds a new button next to the Create Topic button, allowing you to change the topic list order. One of the main goals was to make topic ordering easily accessible on mobile devices as well and themes where the topic list header section is hidden.
Clicking on an item will show the sort order direction (ascending or descending) on the right side of the item.
Settings
This component contains several settings for customization.
Object setting
With the object setting you can change each item’s icon, label, action and order.
- icon → icon name from the Discourse icon set
- label → translation key (see
/admin/customize/site_texts
) - action → sorting action identifier
- order → position of the item in the dropdown
Example for label
:
In this case the label field should be: js.likes