# 关于将标签限制在特定类别的问题

**URL:** <https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767>\
**Category:** UX\
**Created:** [2019年二月21日 18:14 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767 "2019-02-21T18:14:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emilio/32/132550_2.png) [@emilio](https://meta.discourse.org/u/emilio)\
**Post date:** [2019年二月21日 18:14 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767/1 "2019-02-21T18:14:53Z")

</div>

I know about he setting “Only allow these tags to be used in this category” however that limits it to just those tags. And we still want regular global tags to be available in that category.

Is there a way to make it so the global tags can still be used in the category, but there is also a subset that can only be used in that category?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年二月21日 18:26 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767/2 "2019-02-21T18:26:22Z")

</div>

Any idea on this one @neil?

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2019年二月21日 18:46 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767/3 "2019-02-21T18:46:41Z")

</div>

I can add this to my list to investigate.

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2019年三月25日 22:10 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767/4 "2019-03-25T22:10:42Z")

</div>

I’ve looked at this twice, written sql snippets to try to solve this problem, but the number of permutations we now have with these tag restriction rules is making it very complicated. It’s possible but I’ll need to write some new test cases to make sure I’m not breaking current behaviour. Keeping it on my list until I get a big chunk of time to focus on finishing this.

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2019年四月4日 20:52 UTC](https://meta.discourse.org/t/question-about-tags-limiting-to-a-certain-category/109767/5 "2019-04-04T20:52:52Z")

</div>

[This is done](https://github.com/discourse/discourse/commit/83996fc8ea0c703c8e65a32638f19cfd7079fa54), although wording on the modal still feels awkward to me. Words, how do they work?

I also snuck in a new link to the tag groups page since it was hard to discover that feature.

 ![category-tags-2019-04-04_16-50](https://global.discourse-cdn.com/meta/original/3X/c/1/c15cafb729135045129ec3cad3209d41fcc92efb.png)
