Hi all, I’ve created a simple theme component. I hope this could be of use for some!
Overview
This is a theme component that allows you to hide specific categories from either the hamburger menu or category boxes.
Why would you need this component?
If your discourse website has a lot of categories and you would like to hide some from appearing in either the menu bar or on the main page, this component can be helpful.
Correct me if I’m wrong, but from what I understand is that when I mute a category it basically means no notifications? When I tried muting a category it still appears in the hamburger menu and category boxes.
This theme component is more of a stylistic change. It hides desired categories visually, but still keeps notifications and all other functionality for the category intact.
this component looks exactly like something we need in the future. Our use case is very specific in which we want to hide sub-categories from one specific parent category.
In combination with the code snippet from here this might achieve exactly what we are looking for:
Sounds very convenient! Thanks! I’ve added that now to this theme component, so you can now toggle the ability to hide subcategories in the hamburger menu and/or category-list context.
يمكنك تعيين الفئات في قائمة التنقل باستخدام إعدادات المسؤول - default_navigation_menu_categories - يسمح لك هذا الإعداد بتحديد الفئات التي سيتم عرضها ضمن قسم فئات قائمة التنقل بشكل افتراضي. يمكن للمستخدمين تجاوز هذا وتخصيص قسم قائمة الفئات الخاص بهم عن طريق النقر على أيقونة القلم بجوار رأس الفئات تمامًا كما يمكنك، ويجب تشجيع ذلك بشكل عام.