Displaying subcategories

AI-generated summary

The discussion Displaying subcategories revolves around customizing category displays in Discourse. szogun asks if subcategories can be displayed directly when entering a category, and ondrej responds that this can be achieved by checking a box in the category settings and choosing a subcategory list style. szogun then inquires about nesting subcategories under other subcategories, which is limited due to an error. ondrej explains that a hidden site setting, max_category_nesting, can be enabled to allow for deeper nesting, with a maximum value of 3, and provides links to relevant resources: using hidden site settings and sub-sub categories.

Hey, I’m new to using Discourse, and I have a question. Is it possible that after creating a category, e.g., “Announcements,” the subcategories within it are displayed directly when entering it?

Hello @szogun :waving_hand:

You can achieve this in the category settings. Ensure that the box in the image below is checked. Then choose a ‘subcategory list style’ of your liking.

And one more question, is there any way to get around this An error occurred: You can’t nest a subcategory under another

That is, you have Category - subcategory- again subcategory

There is a a way around that - its a hidden site setting you can enable if you are self hosted. If you are a Discourse customer please contact team@discourse.org. Note that the max value is 3.

max_category_nesting