一个帖子的主题可以归入两个类别吗?

Am I correct that a topic can only be assigned to a single category? At times it could be helpful to be able to assign a single topic to multiple categories. For example in a gardening forum a discussion could be relevant to both a plant type category (eg. conifers) and a location type (coastal gardens). Ideally the discussion topic should be present and refresh in both categories.

Are there any workarounds that address this situation? I have considered tagging the topic with the ‘other’ category but this could get confusing and doesn’t provide the same search functionality (as i understand it)

Any prospects of this feature in the nearish future?

1 个赞

This is what tags are for. Categories are for stricter, wall-like groupings.

1 个赞

yea, the problem i have is that my categories are more like a matrix than a tree. the categorisation approach requires me to select only one of the relevant dimensions to identify.

if i used tagging, in the example i gave does that mean i would create tags corresponding to each of my categories and then post topic to one category eg. conifers and tag to the other ‘dimension’ eg coastal gardens?

would somebody interested in coastal gardens need to follow both the coastal gardens category and the coastal gardens tag in order to see all relevant topics? if someone searched coastal gardens would they see all topics that are in the category and tagged to that?

1 个赞

There is no hierarchy in tagging, no. There is category and subcategory, so there is one level of hierarchy in categories.

@codinghorror yes, i have read the various discussions on the site about the relative merits of categories vs tagging and agree with the direction that you have been pushing. SO currently has about 1200 tags which means practically search is the only way to navigate. the discourse approach of categorisation plus tags is much more efficient. also, i agree that too many sub categories can hinder rather than aid navigation.

but my question relates to allowing a topic to not be restricted to a single category for situations where, as in the example, the topic could logically reside in more than one category. tagging is a workaround but doesn’t fully substitute as tags require search, which is what the categories help avoid (and categories are a more subtle way of presenting users with relevant topics compared to having to actively search a tag). i believe a one topic to multiple categories capability would improve the UX without compromising the logic that led you to adopt categories in the first place.

1 个赞

This is a completely impractical change that would cut deep into the internal structures in Discourse. The entire code base is designed around the concept that a topic has at most one category, changing this premise is very very unlikely to happen.

3 个赞

Saffron 先生,我并非怀疑您关于将主题限制在单一类别的陈述。然而,作为另一位用户(KitMaker Network),我也看到了将某个主题列在多个类别中的优势。

我可以举例说明,但我怀疑这是否必要。

但是,为什么不创建一个“别名”(是的,我出生于 Mac 世界),在第一个帖子中创建别名,然后在同一主题的另一个类别中粘贴该链接到第一个帖子中,这样不就简单了吗?

初始创建后,别名将不再显示为别名,而只会立即将读者链接到原始的可编辑第一个帖子?

我已经在一定程度上这样做了,因为我会在一个类别中开始发帖,让话题展开,然后在另一个类别中开始一个完全新的、具有相似标题/描述的主题,但第二个主题将只包含指向第一个主题的链接。

难道不能在不影响 Discourse 程序核心的情况下,简化并自动化这一功能吗?在我看来(我不是合格的程序员),这似乎只需要为核心程序创建/添加一个新的子程序。

就像给汽车添加新的饰条,而无需更换整个发动机和传动系统。

1 个赞

技术上来说,你或许可以(滥用)现有的永久链接系统来做类似的事情……没有测试过,但它或许可行。(管理员 → 自定义 → 永久链接)

2 个赞

您是否考虑过使用标签?您可以为主题添加任意数量的标签,以便将它们归入不同的集合。

类别可用于限制对主题的访问,这使得您的想法有点不切实际。

1 个赞

我遇到了同样的问题,因为我们有一个分类文章,但有些文章也会发布到匹配的分类中。因此,我正在寻找一种符号链接到另一个分类中的帖子,或者是否可以将分类列表链接到一个或多个标签,因为分类更容易被用户浏览。

答案总是相同且不被喜欢🤷‍♂️这种情况显示了分类的问题。它们几乎从不那么准确。这就是为什么最明智的做法是使用更少的类别和更多的标签,而不是试图通过复制主题来惹恼用户。或者,如果必须的话,使用横幅主题。

但您可以看到,用户发现标签与发现类别之间的难易程度是有区别的。这就是为什么我还要求有一个仅列出某些标签的类别。这样可以使此过程更轻松。