# 每个类别的最大标签数与禁止标签数

**URL:** <https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652>\
**Category:** Feature\
**Created:** [2020年六月23日 06:00 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652 "2020-06-23T06:00:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)\
**Post date:** [2020年六月23日 06:00 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/1 "2020-06-23T06:00:40Z")

</div>

在分类选项中，有一个设置主题所需最少标签的选项（主题中所需的最少标签数量）。我认为在该特定分类中增加一个设置每个主题最多标签数量的选项也会很有用，甚至允许完全禁止使用标签。

虽然可以通过标签组（限制每个主题从该组中仅选择一个标签）在一定程度上实现此功能，但在标签同时存在于另一个未启用此限制的标签组中的情况下，该方法无法生效。

对于完全禁止在特定分类中使用标签（至少针对普通用户），存在一种变通方法：创建一个无实际意义的标签，将其分配给一个标签组，将该标签组限制为仅对工作人员可见，然后将该分类限制为仅能使用该标签组。

---

<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:** [2020年六月23日 17:57 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/2 "2020-06-23T17:57:29Z")

</div>

我确实认为，如果我们设定了最低限制，那么设定最高限制也是合理的。让某个用户在一个话题中添加 50 到 100 个标签，这恐怕并不合适。

---

<div class="post-metadata">

**Author:** ![Tayyab\_Anwar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tayyab_anwar/32/148701_2.png) [@Tayyab\_Anwar](https://meta.discourse.org/u/Tayyab_Anwar)\
**Post date:** [2020年九月22日 06:49 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/3 "2020-09-22T06:49:22Z")

</div>

这也是我们需要的，这是一个计划中的功能吗？

---

<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:** [2020年九月22日 18:10 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/4 "2020-09-22T18:10:21Z")

</div>

我认为我们这里应该默认设置每个主题的最大标签数 @eviltrout，不设上限会让我们面临一些……奇怪的情况。

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2020年九月22日 19:23 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/6 "2020-09-22T19:23:52Z")

</div>

每个主题的最大标签数默认为 5 已经是现有功能了吧？

---

<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:** [2020年九月22日 19:36 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/7 "2020-09-22T19:36:13Z")

</div>

哎呀，你说得对，我看错主题了。不，我们目前没有任何相关计划。

---

<div class="post-metadata">

**Author:** ![Drew-ART](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Drew-ART](https://meta.discourse.org/u/Drew-ART)\
**Post date:** [2021年十二月24日 01:50 UTC](https://meta.discourse.org/t/maximum-tags-disallow-tags-per-category/155652/9 "2021-12-24T01:50:30Z")

</div>

我看到了为每个类别设置标签组最小标签数的功能，所以要设置一个系统，让用户在每个新帖子中至少添加 2 个标签，最好的方法是创建一个全局标签组，包含您网站上迄今为止使用的所有标签，然后将每个类别设置为至少需要该组中的 2 个标签？
