![]() |
Summary | Category Groups allows you to assign categories to groups, which are then used to sort and collapse categories on the categories page. |
![]() |
Repository Link | https://github.com/discourse/discourse-category-groups-component |
![]() |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Features
Important things to note:
This only works with the site setting
desktop category page style
set toboxes with subcategories
(as it replaces that category page template).The category collapsing works using your browser’s local storage, so the collapsed state will not be remembered between different devices.
Settings:
Name | Description |
---|---|
category groups | This is how the groups are configured, the setting is formatted as: Category group name: category-slug, category-slug-2, category-slug-3 . The category slug is the name of the category as it’s seen in URLs… usually all lowercase with no spaces. |
show on mobile | If you want to use the default category page on mobile, disable this |
show ungrouped | This will show all categories not assigned to a group in an “Other” group. The name of this group is configurable. |
fancy styling | These are some custom styles I added. They stray from our defaults, so if you’re working on your own theme you may want to disable this. |
Hosted by us? Theme components are available to use on our Standard, Business and Enterprise plans.