In a discussion titled “Force users to select a sub-category?”, Canapin seeks advice on how to enforce subcategory selection for topic creation in a parent category that serves only as a label (with no direct topics), mimicking a phpBB-style structure. While disabling topic creation in the parent category works, the greyed-out “New Topic” button with a icon is visually discouraging. Don suggests replacing the button with clickable links to subcategories and offers CSS to make the button appear clickable. Heliosurge proposes using tags or theme components like “Category Hider” to streamline navigation. Albatroz Jeremias expresses a desire to reduce noise by hiding subcategory topics when viewing a parent category — a feature they believe would improve usability for non-tech-savvy users. Canapin notes this would require a plugin or theme component and reminds Albatroz Jeremias to post feature requests in #feature and technical questions in Development. Canapin also references an outdated solution and observes that a previously working pre-filled category selector on another forum no longer functions. Ultimately, Canapin reports they reverted to Discourse’s default behavior due to usability concerns for new users, referencing a related discussion on reducing UI overwhelm here.
The users of the forum I’m importing would like to have a parent category that serves as a “label” (similar to what they had on phpBB). A category that contains nothing but subcategories. No topics in the parent category.
I’m very well aware that this is not how Discourse categories are intended to work. But it’s not always easy to find new ways of reorganizing categories from an older forum engine that has a different category structure, and my users are satisfied with the current reorganization, despite an “issue” that I’ll describe later (see the paragraph with the video).
The parent category contains 4 sub-categories.
The easy way to force users to post in a sub-category is by unchecking “Create” in the Security tab for “all”, and adding a custom text to be displayed when users don’t have the rights to create topics in this parent category.
However, an issue is that the button New Topic is greyed out, with a symbol on hover, which is really not inviting.
If we click on it (despite nothing let us know we can actually click it because of the icon), we have our custom message (for example: “Please select a subcategory to post a topic”), which is also present on top of the category page (the top line in the video).
I suppose there is an easy JS way to remove the disabled class on this particular button?
But even if we do so, another issue is that users expect that when they click an inviting button (normal state, pointer cursor), they have a message editor, not a message saying “please click one of the subcategories in order to create a topic”. Do you think this will be a deterrent since the forum is aimed to draw new people and not only made for current users?
Or maybe we can completely hide the button… Which could be weird since the New Topic button will be present in other parent categories that are allowed to have topics?
Would you strongly advise finding another organization of categories that allows the parent category to be a regular category with its own topics and not a “label”?
I think i want something like this.. actually what i want is a way less noisy discourse.. is it possible to hide all topics of subcategories when browsing a category?
I can code it. i feel that discourse is super noisy in somethigs. already removed the “suggested topics” with css.. and trying to make it more readable for people which have hard times to use technology. they complain they can’t find stuff.. im still confused how-to make their life easier. they are used to google docs and whatsapp.. but that’s horrible.
my feature request is that instead of showing a list of posts… when i open a category should show a list of sub categories.. and under a list of posts of this category… to see the posts of the subcategory you should open the subcategory.. that is so easier to map in our brains.. id say
The potential overwhelmingness for new users was also discussed here:
If you have a feature request, please post it in Contribute > Feature as this topic was dedicated to forcing users to select a subcategory when the want to create topics in certain categories.
If you know how to achieve what you want (or if you have questions to do so), feel free to share this in Development, it can also be helpful for others
I registered to @rbrlortie’s forum last year out of curiosity and I saw that when I was in a parent category, the category selector was pre-filled with a default subcategory, which was nice. But I looked at it today, and it doesn’t work like this anymore.