Discourse 管理员标签指南

:bookmark: This guide explains how Discourse tags work, how to configure tag settings, and how to manage tags across your site.

:person_raising_hand: Required user level: Administrator

Managing tags in Discourse

Tags in Discourse provide a powerful way to organize and filter content beyond categories. This guide covers everything administrators need to know about configuring and managing tags.

Summary

  • Configure tag settings in your admin panel
  • Create, manage, and bulk modify tags
  • Set up automatic tagging
  • Use tag groups to organize related tags

Configuring tag settings

Tag settings can be found in your admin panel under the “Tags” section of your site settings.

Tagging is enabled by default. To disable tags, uncheck the tagging_enabled setting.

Key tag settings include:

  • Maximum tags per topic
  • Maximum tag length
  • Minimum trust level required to create tags
  • Minimum trust level required to tag topics
  • Maximum tag search results
  • Tag sorting options

Creating and applying tags

Tags are created upon first usage. When composing or editing a topic, a user with tag creation privileges will see a tag chooser next to the category chooser.

Tags can also be adjusted when quick editing a topic title:

:information_source: Categories, depending on their settings, can optionally limit which tags may be applied to topics in that category.

Filtering topics by tags

You can find the full list of tags on the /tags page on your site, along with a count of how often each tag has been used. Selecting a tag will present a list of topics that have had the tag applied.

:information_source: To filter topics by more than one tag at the same time, use the following URL syntax:
https://discourse.example.com/tags/intersection/TAG1/TAG2

Managing individual tags

To manage a specific tag:

  1. Go to the /tags page on your site
  2. Select the tag you would like to manage
  3. Select the wrench icon button to reveal options to rename, delete, and manage synonyms

Bulk managing tags

To modify tags across multiple topics at once:

  1. Visit any topic list filtered by tag
  2. Press the list icon bulk-select button at the top left of the topic list
  3. Manually select topics or use the “Select All” option
  4. Use the wrench icon admin button that appears at the top-right of the topic list to open the Bulk Actions modal
  5. Choose from three tag options:
    • Replace Tags - replace all existing tags with new ones
    • Append Tags - add new tags while keeping existing tags
    • Remove Tags - remove all existing tags

Advanced tag administration

Go to the /tags page and look for the tag admin button in the upper-right corner:

From here you can:

  • Manage tag groups
  • Upload tags in bulk
  • Delete unused tags

Auto-tagging topics with watched words

The watched words feature can automatically tag topics based on specified words appearing in the content.

To set this up:

  1. Navigate to /admin/customize/watched_words/action/tag
  2. Add words or phrases that should trigger specific tags

:warning: This feature will not apply tags retroactively to existing topics.

Important considerations

  • Tags apply to topics, not to individual posts within topics
  • When users type something like #tagname in a post, they are creating a link to that tag, not applying the tag to their post
  • Tag groups can be used to restrict which groups of users can use specific tags

Related Topics

36 个赞
Nesting categories in three levels
How to enable tags?
Is it possible to make tags mandatory?
Topic List Previews (legacy)
Set up structured tagging with tag groups and category tag restrictions
URL syntax for multiple tags within a category
Please create a subcategory for badges
User-defined keyword for each thread
Sub categories and tags
Help with Tags that can only be created by the Moderators but used by everyone
Discourse Tag Cloud
Renaming Tag to Existing Tag Should Merge
How to display categories by alphabet on sidebar and how to display tags on sidebar?
Better navigation for (structured) tags
Moving from sub-categories to tags?
I Need a category link to take me to a tags page
How to create leftsidebar tags section ? based on attachment
Share topic between multiple categories
Non-admins can not see tag usages for categories they have access to
How to delete a single tag?
Tags are not working due to multilingual plugin
Mandatory tagging for topics (either existing tags or user creates a new tag)
Ability to delete tags with < N topics
Can't add tags to category anymore
Tag upload with special characters via CSV is failing
Add a sub-category to a sub-category
Discourse Tag Cloud
Tags are not working due to multilingual plugin
The best way to answer customers?
Tag synonyms are fabulous
Search / Watching for Tags only populates Topics with the tag, not replies
Create a category in Discourse
Use discourse information and basic calculations in custom css?
Special category label doesn't show up
My Wiki of useful Meta (and other) links
Not Able To Post New Topic Using Tags - Error
Questions about editor, style guide and tags
Could I create link to filter multi tags in private message?

3 个帖子已拆分为新主题:如何允许某人创建标签?

我想实现的是,标签可以跨类别使用,并且可以在某个主题的回复中添加标签,即使该主题的头部没有将该标签设置为可选标签。

是否可以在某个主题的回复中利用标签,而该主题的头部并没有将该标签设置为可选标签?
所以,我有一个主题,其中“Phoenix”是一个可选标签,而我创建该标签正是在这个主题中。
我希望能够在其他类别的其他主题的回复中使用#Phoenix,并且能够点击回复中的标签,从而获得所有包含该标签(#phoenix)的其他回复和帖子的结果,而无需在每个主题的头部都添加它。我也希望能够对(#issue、#Problem-Solved 等)做同样的事情。

这是我在主题头部创建标签的主题。

这是我用 Phoenix 标记的几个帖子/回复,我期望它们会出现在该标签的结果中。它们没有显示出来,只有在主题中添加了 Phoenix 作为可选标签的主题才显示出来。



这是当我点击不同主题的回复中的 Phoenix 标签时得到的结果。我期望任何包含 Phoenix 标签的帖子(主题或回复)都应该显示在此列表中。但它只显示了在主题头部将 Phoenix 作为可选标签的主题帖子。

这是我在网站上搜索 Phoenix 时的结果。


Support Bug

1 个赞

您是否阅读了这篇帖子

2 个赞

标签是用于主题的,而不是用于帖子的。我同意也应该可以标记帖子,但这很快就会导致一团糟。并且会大大增加审核工作量。

当你执行类似 tags 的操作时,你是在链接该标签,而不是在标记。与分类相同,当 Feature 不会重新分类,而是在链接。

3 个赞

谢谢你的链接。我会去看看,看看这是否能解决我们遇到的问题。
干杯!

1 个赞

对我来说,“标签组限制”上的标签不是很清楚。
“仅可由特定组使用”是什么意思?使用是指添加、删除还是也点击它们以获取标记主题的列表?如果可能,那么也许可以用“编辑”或明确的“添加/删除”来代替“使用”会很有帮助。

1 个赞

对于如果第一篇帖子包含特定词,则自动标记主题;是否可以以某种方式仅检查标题中的某些词?

如果不能的话,能否添加此功能?

1 个赞

更新: 我通过访问 /tag_groups 找到了该页面,但我不知道为什么右上角不可见。


你好
我正在使用 Discourse 版本 (3.6.0.beta2-latest),并且我有一个管理员帐户,但我仍然找不到管理标签组的页面,如所述:

管理标签组页面的直接链接是什么?

谢谢!

/tag_groups
您也可以更新您的论坛。菜单未显示的错误已修复:

1 个赞

谢谢你,@Moin!你总是很有帮助…… :slight_smile: