Is it possible to create sub-subcategories?

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”?

4 إعجابات

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.

إعجاب واحد (1)

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.

5 إعجابات

@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 openspending and local-groups/okbr and we understand that the second is the priority, so need category local-groups/okbr/prj-gastos-abertos that is a typical “local group project” category.

هذا مثير للاهتمام؛ هل قررت أن أي مجال معرفي قائم قد يحتاج إلى التقسيم بمستوى تصنيف واحد فقط، ولكن لا يمكن تقسيمه بمستويين أو أكثر؟ بينما لا أعرف سببك الدقيق، إلا أنني أجد من الصعب جدًا تصديق أن هذا قد يكون صحيحًا.

مستويان، وليس ثلاثة. ونحن لسنا الوحيدين الذين يعتقدون ذلك (Sun.com Design, Usability & Other Stuff).

كنا فخورين جدًا بواجهة المستخدم لدينا وبوجود طريقة لتصفح 16,000 (!!) صفحة من الوثائق على قرص مضغوط. لكن التنقل في التسلسل الهرمي بدا لنا معقدًا بعض الشيء. لذلك طلبنا من توفتي أن يأتي ويرى، وكنّا نأمل ربما في مدح أو بعض النصائح المجانية.

لعب بـ AnswerBook الخاص بنا لمدة 90 ثانية تقريبًا، ثم التفت وقال رأيه:

“كتاب ‘رعاية الرضع’ للدكتور سبوك هو دليل ملكي الأكثر مبيعًا لأكثر ‘منتج’ تعقيدًا يمكن تصوره – وهو يحتوي فقط على مستويين من العناوين. أما أنتم فلديكم 8 مستويات من التسلسل الهرمي، ولم أزل حتى الآن أوقف العد. لا عجب إذن أن تعتقدوا أنه معقد.”

6 إعجابات

كيف يمكنك حقًا تصنيف فئة؟

مرحباً، شكراً لك على أداة المناقشة الرائعة والمجتمع. أود أن يتم إعلامي إذا كانت هناك إمكانية لإنشاء فئات فرعية فرعية ديناميكيًا؟ كيف يمكن القيام بذلك باستخدام العلامات؟

جرب هذا

إعجاب واحد (1)

يمكنك الآن إنشاء فئات فرعية، فقط اجعل الفئة الأم هي الفئة التي تريد وضع الفئة الفرعية تحتها

إعجاب واحد (1)

من الممكن الآن تغيير مستوى الفئات الفرعية من خلال إعداد موقع مخفي:

cd /var/discourse/

./launcher enter app

rails c

SiteSetting.max_category_nesting = 3

7 إعجابات

إنه يشير إلى الفئات الفرعية الفرعية، أي مستوى ثالث، وليس مستوى ثاني (فئات فرعية).

إعجابَين (2)

حسنًا. وهذا الإعداد المخفي يجعل من الممكن وجود فئات فرعية فرعية (ثلاثة مستويات، ومن هنا جاء الرقم 3 في الإعداد). لقد كان موجودًا منذ عام، على ما أعتقد، لكنه لم يحظ بالكثير من الدعاية عند إضافته (لقد ورد فقط في ملاحظات الإصدار، ولكن ربما لم يحصل على عنوان). أعتقد أن أحد عملاء المؤسسات أراد هذه الميزة، لكنهم ما زالوا يعتقدون أنها فكرة سيئة. :wink:

5 إعجابات

لم أجرب إنشاء فئة فرعية فرعية من قبل، هل هذا غير ممكن من خلال واجهة المستخدم؟

إنه ممكن بمجرد تمكين الميزة. تقوم بتعيين الأصل إلى الفئة الفرعية بدلاً من الفئة الأصلية لإنشاء فئة فرعية فرعية.

هذا ما تبدو عليه شاشة إنشاء فئة عند إنشاء فئة فرعية فرعية:

لا أتذكر من طلبها في الأصل، لكننا طلبنا تمكينها منذ ما يزيد قليلاً عن عام في منتديات NaNoWriMo على أمل أن تساعد في حل مشكلة أكبر وفريدة إلى حد ما لدينا.

لقد حلت مشكلة حالة الاختبار لدينا ولكن للأسف لن يصلح أي شيء أقل من معجزة المشكلة الأخرى. :ابتسامة خفيفة:

3 إعجابات