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 Mi Piace

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 Mi Piace

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 Mi Piace

@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.

È interessante che tu abbia deciso che qualsiasi campo di conoscenza esistente possa richiedere una suddivisione in esattamente un livello di categorie, ma mai in due o più livelli. Anche se non conosco il tuo ragionamento esatto, per me è molto difficile credere che questa possa essere la verità.

Due livelli, non tre. E non siamo gli unici a pensarla così.

Eravamo molto orgogliosi della nostra interfaccia utente e del fatto che avessimo un modo per navigare tra 16.000 (!!) pagine di documentazione su un CD-ROM. Ma la navigazione gerarchica ci sembrava un po’ complicata. Così abbiamo invitato Tufte a dare un’occhiata, sperando forse in una pacca sulla spalla o in qualche consiglio gratuito.

Ha manipolato il nostro AnswerBook per circa 90 secondi, si è girato e ha pronunciato la sua recensione:

“Dr. Spock’s Baby Care è un manuale proprietario bestseller per il ‘prodotto’ più complicato immaginabile – e ha solo due livelli di intestazioni. Voi ne avete 8 livelli di gerarchia e non ho ancora finito di contare. Non c’è da meravigliarsi che pensiate sia complicato.”

6 Mi Piace

Come si può effettivamente taggare una categoria?

Ciao, grazie per il fantastico strumento di discussione e per la community. Vorrei essere informato se c’è la possibilità di creare sottocategorie secondarie dinamicamente? Come si può fare con i tag?

Prova questo

1 Mi Piace

Ora puoi creare sottocategorie, basta rendere la categoria padre la categoria sotto la quale vuoi avere la sottocategoria

1 Mi Piace

È possibile modificare il livello delle sottocategorie ora tramite un’impostazione del sito nascosta:

cd /var/discourse/

./launcher enter app

rails c

SiteSetting.max_category_nesting = 3

7 Mi Piace

Si riferisce a sottocategorie secondarie, cioè un terzo livello, non a un secondo livello (sottocategorie).

2 Mi Piace

Giusto. E questa impostazione nascosta rende possibile avere Sotto-sottocategorie (tre livelli, da cui il 3 nell’impostazione). Esiste da circa un anno, credo, ma non ha ricevuto molta pubblicità quando è stata aggiunta (era solo nelle note di rilascio, ma forse non aveva un titolo). Immagino che qualche cliente aziendale debba averla voluta, ma pensano ancora che sia una cattiva idea. :wink:

5 Mi Piace

Non ho mai provato a creare una sottocategoria secondaria, non è possibile tramite l’interfaccia utente?

È possibile una volta che la funzionalità è abilitata. Imposti il genitore alla sottocategoria invece della categoria genitore per creare una sotto-sottocategoria.

Questo è l’aspetto della schermata di creazione di una categoria quando si crea una sotto-sottocategoria:

Non ricordo chi l’abbia richiesta originariamente, ma abbiamo chiesto di abilitarla poco più di un anno fa sui forum di NaNoWriMo sperando che alla fine aiutasse a risolvere un problema molto più grande e piuttosto unico che abbiamo.

Ha risolto il nostro problema di casi di test, ma purtroppo niente di meno che un miracolo risolverebbe l’altro problema. :slight_smile:

3 Mi Piace