This theme component only works with the site setting desktop category page style set to boxes 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.
This is how the groups are configured. Format as: Group name: category-slug, extra-link-id, category-slug-2 (The category slug is the name of the category as itās seen in URLs. Usually all lowercase with no spaces)
extra links
Extra links that can be mixed into category list. Add link ID in category_groups setting to render
show on mobile
Show the collapsible category box groups on mobile
show ungrouped
Display a group of categories that arenāt assigned to another group
fancy styling
Turn on additional styling (These are some custom styles added. They stray from our defaults, so if youāre working on your own theme you may want to disable this)
hide muted subcategories
When enabled, a non-muted parent category will not appear under the muted section if it has a muted subcategory
Theme Translations
Default
ungrouped_categories_title
Other
Hosted by us? Theme components are available to use on our Standard, Business and Enterprise plans.
Iāve just merged a refactor of this component. Functionality should remain the same overall, with some bug fixes.
Behind the scenes this uses some modernized Ember, and eliminates template overrides, which can be a little fragile as far as Discourse customizations go.
This should be fixed now
This is fixed now, the groups will no longer apply to the subcategory layouts
Iāve updated this, so category logos should be much more normally sized now
Is it possible to not show subcategories for a particular category? We have a category thatās organized in a particular way with nested subcategories and itās causing the box to be quite large.
is this in the Mint theme? Iāve just made a minor update that should fix it ā there was a slight conflict between the CSS of that theme and this component
How do I prevent the boxes being outlined with the category colour? Iāve tried forking it, adding css, and also changing the <li style in the categories-groups.hbs
(Note that I am a dabbler, not a trained developer)
It appears Iām having a bigger problem. For some reason, whenever I try to update the Theme component, it doesnāt pick up the changes at all. So my css was good, it just wasnāt being loaded. Not something for this thread, Iāll have a search around to see if there is something dumb Iām doing
Would it be possible to have the fancy styling boxes with a latest section below the categories? In essence I want to do that same thing that the āModern Categories + Group Boxesā component does in the Air Theme. You can select Categories with Latest for the desktop view and latest displays below the categories.
Im trying to edit my own version of the CSS but im no expert. Would this be an easy thing to do or might it be out of my skill set?
I have this use case, where we have many categories, and sub-categories that are enabled, and they make the landing page very crowded, hard to find what interests the user.
Because of this, we want to customize the Category Groups landing page in a way that it is more targeted for the users in specific interest areas (via the user-groups).
So, I propose adding a visibility option for each category group. If any defined, the category group would be made visible only to those user-groups enabled in its settings.
I so created a pull-request to demonstrate what I mean by all this. Please let me know what you think of this option. Would you use it? Does it apply to your Discourse site?
p.s. This proposed new option should not be considered as alternative access-control. It simply controls what category groups will be visible for the logged-in user based on their group memberships. The existing permissions will still be in affect.