User defined preference for displaying a subcategory list above topics in a category

tl;dr – Our Discourse user base would like a individual user level toggle to hide the static content when the “Show subcategory list above topics in this category” checkbox at /c/[categoryname]/edit/settings is checked and the Subcategory List Style is “Boxes”.


Initial Context

Our Discourse forum currently has 25 public groups that users can join and many of them join 10+ groups. Based on the way we have our top-level Groups category configured to display subcategories for each group, there’s a lot of static content above where the dynamic Topic list starts.

Some users grow tired of scrolling past all the group subcategory boxes until they get to the dynamic Latest style view for the category, especially on mobile. In other words, they just want to see all the subcategory content mixed together right away and don’t want to see the pretty boxes displayed.

Proposal: User-Level Preference to Hide Subcategory List Style: Boxes

I created this quick Loom video to explain my preferred solution for a new user-level preference to handle the combination of options at /c/[categoryname]/edit/settings > Appearance > Show subcategory list above topics in this category > Subcategory List Style.

In general, I’m all for letting users temporarily or permanently toggle on/off static content on a page.

2 Likes

I agree @codinghorror / @awesomerobot that this is somewhat annoying, we allow users to pick home page, seems reasonable to allow users to remove the boxes.

Even when there are only 2 boxes this can be quite annoying.

3 Likes

employee of the month ups GIF

Should it be a category-level setting tied to the subcategory list stuff (default on)? Lots of themes customize the section and might not want to hide it.

Screen Shot 2021-05-04 at 10.54.34 PM

Pairing that with user preference would be easy and not need any new UI, but that’s hard to discover… and then because it’s a category-level thing… sometimes it doesn’t work? Including that in the setting would help explain it, but kind of :poop: :

Hide subcategory lists on category pages, when allowed by admin

Instead maybe they’re collapsible in an obvious way? we’d have to work out a default collapse/expand UI that works for all the styles… or maybe kind of like a dense layout toggle?

4 Likes

I love this, especially if we store your preference in localstorage for your browser.

I think this is “somewhat” annoying, but not so annoying that I can not be bothered clicking something once on every browser.

Plus then users don’t need to discover another magic option .

4 Likes

It’s a good question and I don’t feel like I need to weigh in on it. You’re seeing things in a more holistic way than me so I’ll probably be good with whatever solution you might implement that meets my core need of making the toggle also available at the individual user level.

Some people want the subcategory boxes. It’s just that a lot of people also don’t. :slight_smile:

Any progress / further thoughts on this? It would be very useful for our Forum which needs to make subcategories obvious for new users but hideable for users who know their way around.

I like this setting so much, but it seems like Discourse is no longer supporting “allow users to hide the subcategory list”. Am I missing anything?

It was never added, this was just a discussion about potentially adding it as a new feature

It would be great if this feature can be added. I wrote some code to achieve the same effects by adding “collapse” and “expand” buttons like this👇, but it’s clearly not good-looking or clean as yours.

2 Likes

Please share that code!