# 特定のカテゴリからトピックを作成する際、その親のサブカテゴリのみを表示することは可能ですか？

**URL:** https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765
**Category:** Support
**Created:** [2019 年 1 月 5 日午後 6:56 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765 "2019-01-05T18:56:42Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![smlemk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smlemk/32/65235_2.png) [@smlemk](https://meta.discourse.org/u/smlemk)
#### Post date: [2019 年 1 月 5 日午後 6:56 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/1 "2019-01-05T18:56:42Z")

</div>

I have 4 main categories. Main, Bugs, Off topic, Misc. In Bugs I have “PC” and “MOBILE”. If they go to the Bugs category and press New Topic, they are greeted with the entire list of categories and child categories and make it difficult to properly tag things when they don’t know any better. I see on this forum it has only 3 categories showing despite there being many. How was this achieved?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 1 月 7 日午後 4:05 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/2 "2019-01-07T16:05:38Z")

</div>

ふむ、Metaでも同様の不整合が目につきます…カテゴリの設定を見落としている可能性もありますが、特に目立った設定は見当たりません。

#Customization > Theme カテゴリにアクセスして「新しいトピック」をクリックすると、すべてのカテゴリがドロップダウンに表示されます。

 ![30%20AM](https://global.discourse-cdn.com/meta/original/3X/5/1/512daec3fca8759d80b5754d005833bf4ec2a724.png)

#Customization > Plugin カテゴリにアクセスして「新しいトピック」をクリックすると、「未分類」「プラグイン」、および「プラグインのサブカテゴリ」しか表示されません。

 ![45%20AM](https://global.discourse-cdn.com/meta/original/3X/a/1/a10c9849233bf24f50a9e88f018be9d13bad3919.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2019 年 1 月 7 日午後 10:11 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/3 "2019-01-07T22:11:58Z")

</div>

@vinothkannans any idea why this is happening

---

<div class="post-metadata">

### Author: ![smlemk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smlemk/32/65235_2.png) [@smlemk](https://meta.discourse.org/u/smlemk)
#### Post date: [2019 年 1 月 8 日午前 1:42 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/4 "2019-01-08T01:42:38Z")

</div>

Well, I’m glad it is reproducible. IMO it should always be like your latter example for ease of use for people who aren’t accustomed to a forum like this. Hope it’s something that gets fixed! Should I post it on Github?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2019 年 1 月 8 日午前 3:08 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/5 "2019-01-08T03:08:36Z")

</div>

Not sure. It must be a bug. Always it should display all the categories in the dropdown right?

> [@smlemk](#):
>
> Should I post it on Github?

No need for that. Thanks for the report.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 1 月 8 日午前 3:18 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/6 "2019-01-08T03:18:50Z")

</div>

I think the expected behavior is that when you click new topic when in a category, only that category and its subcategories should appear (but if you search, then all categories should be possible results).

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2019 年 1 月 10 日午後 2:31 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/8 "2019-01-10T14:31:07Z")

</div>

[https://github.com/discourse/discourse/commit/06512685ab042586e84156c6469ff87a108dca77](https://github.com/discourse/discourse/commit/06512685ab042586e84156c6469ff87a108dca77)

This is already working as expected.

> [@awesomerobot](#):
>
> the expected behavior is that when you click new topic when in a category, only that category and its subcategories should appear

This behavior is only when `show_subcategory_list` category setting is set.

> [@awesomerobot](#):
>
> but if you search, then all categories should be possible results

I agree here, currently we can’t find other categories even by search.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 1 月 10 日午後 2:39 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/9 "2019-01-10T14:39:40Z")

</div>

I don’t know if this should hinge on `show_subcategory_list` @eviltrout? It doesn’t seem intuitive to me that limiting the scope of the composer is controlled by the category page layout… I’d either limit the scope by default when viewing a category or have a separate category setting to control it.

Though this is also the first time it’s come up in _4 years_ since that commit 🤷‍♂️

---

<div class="post-metadata">

### Author: ![smlemk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smlemk/32/65235_2.png) [@smlemk](https://meta.discourse.org/u/smlemk)
#### Post date: [2019 年 1 月 10 日午後 2:43 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/10 "2019-01-10T14:43:46Z")

</div>

And in layman’s terms? Is this going to be changed or not? Or how do I make it only show that categories subcategories?

If I press New Topic in the Bugs category, I should only be greeted with the main category (Bugs) and the subcategories (PC and Mobile). A new user shouldn’t have to scroll through 150 other categories to find the correct tag if they are pressing the New Topic button in a specific category, no?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 1 月 10 日午後 3:08 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/11 "2019-01-10T15:08:45Z")

</div>

Sorry for the confusion @smlemk, I just noticed that sometimes the categories are limited and sometimes they’re not and wasn’t sure why.

At the moment the categories will be limited if you change the category settings to show the subcategory list above the topic list (similar to how our [support category](https://meta.discourse.org/c/support) is structured now). Otherwise all categories will show.

There’s no other way to control the behavior at the moment.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2019 年 1 月 10 日午後 3:09 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/12 "2019-01-10T15:09:50Z")

</div>

> [@awesomerobot](#):
>
> Though this is also the first time it’s come up in _4 years_ since that commit

Oh man this is why I started writing longer commit messages. It’s so difficult to remember what I was thinking 1 year ago let alone 4!

Usually when I introduce a setting, I try to make sure the “default” discourse experience stays the same, which is probably why I did it that way. I wouldn’t be against making this the default, but I do wonder if some people might be confused about why the category list is incomplete if they are on certain pages. Maybe it’s obvious and they would figure it out?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 1 月 10 日午後 3:31 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/13 "2019-01-10T15:31:00Z")

</div>

The most confusing part to me is that the option is controlled by the category page layout, it does make sense as a category setting though… I think if we limited the scope by default we’d have to make the other categories searchable at least?

> [@eviltrout](#):
>
> but I do wonder if some people might be confused about why the category list is incomplete if they are on certain pages

I did just find a post where someone was confused about an incomplete list: [https://meta.discourse.org/t/not-able-to-change-category-if-i-start-a-new-topic-from-a-specific-category/46889/17?u=awesomerobot](https://meta.discourse.org/t/not-able-to-change-category-if-i-start-a-new-topic-from-a-specific-category/46889/17)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2019 年 1 月 10 日午後 4:04 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/14 "2019-01-10T16:04:50Z")

</div>

> [@awesomerobot](#):
>
> if we limited the scope by default we’d have to make the other categories searchable at least?

This is done by the commit below

[https://github.com/discourse/discourse/commit/a8ff4a8a783f4fe939b46adcff6fbce576048f4e](https://github.com/discourse/discourse/commit/a8ff4a8a783f4fe939b46adcff6fbce576048f4e)

> [@eviltrout](#):
>
> but I do wonder if some people might be confused about why the category list is incomplete if they are on certain pages.

I think if we make it as default then everyone will figure it out.

---

<div class="post-metadata">

### Author: ![smlemk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smlemk/32/65235_2.png) [@smlemk](https://meta.discourse.org/u/smlemk)
#### Post date: [2019 年 1 月 10 日午後 4:09 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/15 "2019-01-10T16:09:46Z")

</div>

Aw man, that is ugly to me. Having to show the categories above, but I guess it might make it easier for people to find the subcategories they’re looking for. At least I know how to force it now, thank you.

If people get confused by it, can we just have an option to be able to force it without having to “Show subcategory list above topics in this category.”?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2019 年 1 月 10 日午後 7:20 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/16 "2019-01-10T19:20:17Z")

</div>

> [@vinothkannans](#):
>
> I think if we make it as default then everyone will figure it out.

I think you’re right. Let’s try it out.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2019 年 1 月 10 日午後 7:39 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/17 "2019-01-10T19:39:42Z")

</div>

Done. cc @smlemk

[https://github.com/discourse/discourse/commit/0744e84604e7e056f59ee7f7725f009ecaeb4293](https://github.com/discourse/discourse/commit/0744e84604e7e056f59ee7f7725f009ecaeb4293)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2019 年 1 月 14 日午後 12:30 UTC](https://meta.discourse.org/t/when-creating-a-topic-from-the-specific-category-is-there-a-way-to-only-show-that-parents-child-categories/105765/18 "2019-01-14T12:30:00Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
