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,
https://discuss.okfn.org/c/local-groups

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.

This is interesting that have you decided that any existing field of knowledge may require to be split by exactly one level of categories but never by level two or higher. While I don’t know your exact reasoning but for me it’s very hard to believe that this can be the truth.

Two levels, not three. And we’re not the only people to think so.

We were very proud of our user interface and the fact that we had a way to browse 16,000 (!!) pages of documentation on a CD-ROM. But browsing the hierarchy felt a little complicated to us. So we asked Tufte to come in and have a look, and were hoping perhaps for a pat on the head or some free advice.

He played with our AnswerBook for about 90 seconds, turned around, and pronounced his review:

“Dr Spock’s Baby Care is a best-selling owner’s manual for the most complicated ‘product’ imaginable – and it only has two levels of headings. You people have 8 levels of hierarchy and I haven’t even stopped counting yet. No wonder you think it’s complicated.”

6개의 좋아요

카테고리를 실제로 태그하는 방법은 무엇인가요?

안녕하세요, 훌륭한 디스커스 도구와 커뮤니티를 만들어 주셔서 감사합니다. 하위 하위 카테고리(sub sub categories)를 동적으로 생성할 수 있는 가능성이 있는지 알려주시면 좋겠습니다. 태그를 통해 이를 어떻게 구현할 수 있을까요?

이것을 시도해 보세요

1개의 좋아요

이제 하위 카테고리를 만들 수 있습니다. 하위 카테고리를 추가할 상위 카테고리를 선택하면 됩니다.

1개의 좋아요

이제 숨겨진 사이트 설정을 통해 하위 카테고리의 수준을 변경할 수 있습니다:

cd /var/discourse/

./launcher enter app

rails c

SiteSetting.max_category_nesting = 3

7개의 좋아요

그는 2단계(하위 카테고리)가 아니라, 3단계인 하위 하위 카테고리를 말하는 것입니다.

2개의 좋아요

맞아요. 그리고 그 숨겨진 설정 덕분에 서브서브 카테고리(세 단계이므로 설정 값이 3)를 만들 수 있습니다. 이 기능이 추가된 지 1년은 된 것 같은데, 당시에는 큰 주목을 받지 못했어요(릴리스 노트에 언급은 있었지만, 제목은 없었을 수도 있죠). 아마 어떤 기업 고객이 이 기능을 원했던 것 같은데, 여전히 나쁜 아이디어라고 생각하는 것 같습니다. :wink:

5개의 좋아요

저는 서브 서브 카테고리를 만들어 본 적이 없는데, UI를 통해 불가능한 건가요?

해당 기능이 활성화되면 만들 수 있습니다. 부모 카테고리가 아닌 서브 카테고리를 부모로 설정하면 서브 서브 카테고리가 생성됩니다.

서브 서브 카테고리를 만들 때 카테고리 생성 화면은 다음과 같습니다:

원래 누가 요청했는지 기억나지 않지만, 약 1년 전쯤 NaNoWriMo 포럼에서 활성화해 달라고 요청했습니다. 우리가 가진 훨씬 크고 다소 독특한 문제를 궁극적으로 해결하는 데 도움이 되기를 바랐기 때문입니다.

테스트 케이스 문제는 해결했지만, 불행히도 기적 같은 일이 일어나지 않는 한 다른 문제는 영원히 해결되지 않을 것입니다. :slight_smile:

3개의 좋아요