Higher level of granularity for category & subcategory styling

Continuing the discussion from Show subcategory list UI:

I find our current options for category styling a bit confusing. When I change the category style, I expect that category style to apply everywhere, unless otherwise specified. The fact that a subcategory index has a unique, hardcoded styling is unexpected.

I’d love to have category UI settings with this level of granularity:

  • desktop category page style

  • Categories only

  • Categories with featured topics

  • Categories and latest topics

  • None; just show Latest

  • :new: desktop sub-category list style (replaces show subcategory list)

  • Inherit desktop category page style

  • Categories only

  • Categories with featured topics

  • Categories and latest topics

  • None; just show Latest

  • :new: feature page style (i.e. configured in a category’s General settings)

  • Inherit desktop sub-category list style

  • Categories only

  • Categories with featured topics

  • Categories and latest topics

This would would allow us to set a more documentation-friendly styling for our howto category, while the rest remains focused on discussion.

(Also find it a bit weird that we only do this on desktop, as there’s definitely a way to do a mobile style layout for all of these options, but that’s a different topic.)

5 个赞

I’m not able to understand your post – can you perhaps use some cropped screenshots to illustrate?

If I understand it, we’re talking about having the option to maintain the two-column split view while browsing categories, or to only show subcategories with no topics listed (in the case of “container” categories).

Perhaps @erlend_sh can clarify with cropped screenshots.

I’m holding off on the mockups since I suggested a simpler solution in one of our internal discussions.

@erlend_sh
这是否意味着在 https://meta.discourse.org/c/plugin 上请求类似的功能,包括一些固有选项?

@codinghorror,你是如何创建这种布局的?是否也可以在磁贴中列出标签和/或主题?
类似这样:

1 个赞

请查看“类别设置”,在 外观 标题下

是的,可以显示最新主题标题;但标签不行(除非你构建一个新的主题组件来实现该功能)。

2 个赞

激活后找到了 :slight_smile:
grafik

知道了 :grimacing: 但这将允许我用例如水平可滚动窗口来替换这些方框,想象一下,在 https://experts.feverbee.com/ 的“热门话题”下方有超过 10 个方框


最终形成如下布局

https://experts.feverbee.com/ 具有非常高的定制水平,并提供了专为创建新界面而编写的插件。若希望达到同等程度的定制,您必须拥有一支能够操作和为 Discourse 创建新模板的开发团队,或者在我们的 Marketplace 上聘请开发人员。

1 个赞

如果能知道哪些功能对应哪些自定义就太好了:yum:

他们在网站上发布的一些 CSS 自定义设置。

我刚刚偶然发现了 https://discuss.okfn.org/,他们在那里以方框形式展示了子分类。这也是定制的吗?还是这只是 Discourse Vincent 主题 独有的功能?

这正是我想看到的,为标签提供相同的视图。既然 Discourse 已经采用了标签,如果能更有效地利用它们进行导航就太好了。目前它们大多被隐藏起来,非技术用户很难找到并使用它们。