Is it possible to create subcategories within subcategories? For example, can I have a grandparent category, parent subcategory, and child subcategory? If not, is there any alternative to creating a separate instance for each “grandparent”?
No, there are only two levels of categories in Discourse.
We’ll combine the 2 levels of categories with tags. It’s not just about taxonomy, it’s also about moderation rights.
Will 3 levels of categorization be possible in the future? My site is about 4 sports, then within each sport, I want a category called “Gear”, and then within “Gear” have the different brands.
I could also do a top level category called Gear, and then have the Gear Companies underneath.
Or just have the Gear companies for each sport listed directly under the sport.
No plans for more than 2 levels of categories. As @jeans noted, adding tags into the mix makes more sense at that point. So use the official tag support built into Discourse.
@codinghorror What would be the technical implications of allowing deeper nesting of categories? I don’t have a specific requirement in mind, just curious. I can see UI concerns, but the data model looks like it could handle chains of parents.
Here a typical case where we need to configure Discourse with 3 levels,
Local Groups - Open Knowledge Forums
the local-groups are in fact the “level zero”, in some cases we also change language (!), as at local-groups/okbr. The main topics are at this level-2, it is ok, but…
The level-3 is important to isolate very distinct topics and/or communities:
-
to isolate official topics. Example: today we use the “official” tag as here, but we need to isolate as
local-groups/okbr/oficial, -
to isolate projects, because they have independent communities and very specific topics. Example: this project was losted in an external category, openspending/gastos-abertos, we need an intersection between
openspendingandlocal-groups/okbrand we understand that the second is the priority, so need categorylocal-groups/okbr/prj-gastos-abertosthat is a typical “local group project” category.
既存の知識分野が、レベル2以上の階層ではなく、必ずちょうど1段階のカテゴリに分割されなければならないというご判断は興味深いですね。あなたの正確な理由までは存じ上げませんが、これが真実であるとは私にはとても信じがたいです。
2 つのレベルであって、3 つではありません。そして、私たちがそう考える唯一の人間ではないのです。
私たちはユーザーインターフェースを非常に誇りに思っており、CD-ROM 上で 16,000 (!!) ページものドキュメントを閲覧できる仕組みを持っていたことに誇りを持っていました。しかし、階層を閲覧するのは私たちにとって少し複雑に感じられました。そこで、Tufte を招いて見ていただき、頭を撫でてもらったり、無料のアドバイスをもらったりできることを期待していました。
彼は約 90 秒間 AnswerBook を操作し、振り返ってこう評しました:
「『スプック博士の育児書』は、想像できる最も複雑な『製品』向けのベストセラーの取扱説明書ですが、見出しはわずか 2 レベルしかありません。あなた方のお手元には 8 レベルの階層があり、まだ数え終わっていません。複雑だと感じるのも無理はありません。」
カテゴリを実際にタグ付けするにはどうすればよいですか?
こんにちは。素晴らしいディスコースツールとコミュニティをありがとうございます。サブカテゴリのサブカテゴリを動的に作成する可能性はありますか?タグを使用してどのように行うことができますか?
こちらをお試しください
これでサブカテゴリを作成できます。サブカテゴリの下に親カテゴリを配置するだけです。
サブカテゴリのレベルを非表示のサイト設定で変更できるようになりました。
cd /var/discourse/
./launcher enter app
rails c
SiteSetting.max_category_nesting = 3
彼は、2番目のレベル(サブカテゴリ)ではなく、3番目のレベルであるサブサブカテゴリについて言及しています。
なるほど。そして、その隠し設定により、サブサブカテゴリ(3つのレベル、したがって設定の「3」)を持つことが可能になります。確か1年ほど前から存在していましたが、追加されたときはあまり注目されませんでした(リリースノートには記載されていましたが、見出しはなかったかもしれません)。おそらく、あるエンタープライズ顧客がこの機能を求めていたのでしょうが、彼らはまだそれが悪い考えだと思っているようです。![]()



