I muted two categories and it still appear on top of the categories page (since it have recent activity). Shouldn’t it be hidden or at the bottom? It’s more annoying when I use categories as home page. And “categories with featured topics” option even showing me muted category’s topics too. Also is it better to order categories by notification_level and then activity.
Yes we should fix this in some manner cc @sam.
May I create PR to exclude muted categories from categories.json?
Of course, but don’t “exclude” them, mark then as “muted” instead.
In categories.json it already have notification_level=0 property. If we excluded it will not display in all categories listing locations (like categories page, composer dropdown, filter dropdown, etc.,). Or we have to manually hide it or order it to the bottom position in all locations.
You can’t remove categories from categories.json, otherwise they’ll never appear anywhere if you mute them.
I would start with ensuring we respect the notification_level=0 for the /categories page first.
Then I would deal with the dropdowns and such.
I thought it shouldn’t appear anywhere except user’s preferences page setting muted categories. If it will affect site’s functionality let’s do manually.
“categories.json” is the source of truth for categories. So if you remove them, they’ll never appear anywhere ![]()
Please can you fix it, we’ve have a business plan with this behavior since February 2020
This is by design, if you wish to suppress them on the categories pleas use a theme component.
You can use this theme component to suppress the categories.
目前情况已不再是这样。
已静音的分类现在会被分组并隐藏在分类页面底部的框中。你们知道有什么方法可以恢复到旧的行为,让已静音的分类仍然列在分类页面上吗?
谢谢!
您为什么要保留旧行为?新行为是更好的通用默认设置。
您好 @codinghorror,我需要找到一种方法来恢复旧的行为,因为我们的工作组需要能够获取完整的类别列表,而不仅仅是未静音的类别。他们也不会意识到静音的类别隐藏在页面底部。
过去有一种方法可以实现与新行为类似的结果(可以使用此插件来隐藏其静音主题,使其不出现在最新主题页面上,并使用此 CSS 插件来隐藏所有静音类别,使其不出现在类别页面上),现在我找不到任何方法来恢复旧的行为,正如我在这里尝试解释的那样。
您有什么建议吗?谢谢!
我同意需要整个类别列表。我们默认会静音所有类别,以防止话题淹没用户,但我们希望类别是可发现的,这样用户就可以查看并了解他们是否愿意参与某项特定工作。这有点像 Slack 中的频道,如果你不在其中,你就看不到它们,但当你添加新频道时,你会看到所有选项,并且可以浏览任何频道的具体内容,以决定是否加入。
在这种情况下,它已经像下面的截图一样向最终用户显示了所有分类。
关注某个分类后,用户的分类页面视图将如下所示:![]()
他们可以随时展开静音分类部分。
如果您希望静音分类部分始终处于展开状态,可以使用以下 CSS 来实现。
.muted-categories .category-list.hidden {
display: table !important;
}
.muted-categories-link .d-icon {
display: none;
}
@mangojumbo 你也可以使用这个 CSS 技巧。
@vinothkannans 感谢您的回复和有用的 CSS。
我们遇到的问题是,我们使用 CSS 自定义了分类页面,以便将分类分组(关于不同项目、不同语言等的组),并且每个组都有一个主标题。
当我们隐藏所有用户不属于的分类时,这种分类将不再有效,因为大多数分类会一起移到页面底部。
Discourse 是否有可能提供一个设置来恢复以前的行为(将所有隐藏的组显示在相同的位置)?@codinghorror
非常感谢您为这个了不起的项目所做的一切。


