Admin guide to tags in 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 “Categories and Tags” area 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 (max_tags_per_topic)
  • Maximum tag length (max_tag_length)
  • Groups allowed to create tags (create_tag_allowed_groups)
  • Groups allowed to tag topics (tag_topic_allowed_groups)
  • Groups allowed to edit tags (edit_tags_allowed_groups)
  • Maximum tag search results (max_tag_search_results)
  • Tag sorting options (tags_sort_alphabetically)

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, or navigate directly to /tag_groups:

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

Last edited by @jessii 2025-05-21T22:45:48Z

Check documentPerform check on document:
36 лайков
Nesting categories in three levels
How to enable tags?
Is it possible to make tags mandatory?
Set up structured tagging with tag groups and category tag restrictions
Sub categories and tags
Please create a subcategory for badges
URL syntax for multiple tags within a category
User-defined keyword for each thread
Better navigation for (structured) tags
How to display categories by alphabet on sidebar and how to display tags on sidebar?
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
Moving from sub-categories to tags?
Share topic between multiple categories
I Need a category link to take me to a tags page
How to create leftsidebar tags section ? based on attachment
Ability to delete tags with < N topics
Can't add tags to category anymore
Allow non-admins to see tag usages for categories they have access to
How to delete a single tag?
Tag upload with special characters via CSV is failing
Add a sub-category to a sub-category
Mandatory tagging for topics (either existing tags or user creates a new tag)
Discourse Tag Cloud
Tags are not working due to multilingual plugin
Search / Watching for Tags only populates Topics with the tag, not replies
The best way to answer customers?
Tag synonyms are fabulous
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 лайка

Теги предназначены для тем, а не для сообщений. Я согласен, что было бы неплохо добавлять теги и к сообщениям, но это очень быстро может превратиться в полный хаос. Кроме того, это значительно усложняет модерацию.

Когда вы используете что-то вроде #тег, вы создаёте ссылку на этот тег, а не добавляете тег. То же самое касается категорий: когда вы пишете #feature, это не перекатегоризирует сообщение, а создаёт ссылку.

3 лайка

Спасибо за ссылку. Я проверю её и посмотрю, поможет ли это решить нашу проблему.
Удачи!

1 лайк

Мне кажется, что метки в ограничениях группы тегов не совсем понятны. Что означает «могут использоваться только определенной группой»? Имеется ли в виду добавление, удаление или также клик по ним для получения списка тем с тегами? Если это возможно, то, возможно, было бы полезно заменить слово «использоваться» на «редактироваться» или явно указать «добавление/удаление».

1 лайк

Для функции «Автоматически помечать темы, если в первом сообщении содержится определённое слово»: можно ли настроить проверку только заголовка для некоторых слов?

Если нет, можно ли добавить эту возможность?

1 лайк

Обновление: Я нашёл страницу, перейдя по адресу /tag_groups, но не понимаю, почему не отображается верхний правый угол.


Привет!
Я использую версию Discourse (3.6.0.beta2-latest), у меня есть учётная запись администратора, но я всё ещё не могу найти страницу для управления группами тегов, о которой упоминается:

Какая прямая ссылка ведёт на страницу управления группами тегов?

Спасибо!

Это /tag_groups.

Возможно, стоит обновить ваш форум. Исправлена ошибка, из-за которой не отображалось меню:

1 лайк

Спасибо @Moin! Вы всегда очень полезны… :slight_smile:

По какой-то причине у меня не отображается опция tagging_enabled в разделе вкладок настроек административного сайта. Может быть какая-то причина?

Заранее спасибо!

Добро пожаловать в Meta :wave:

Без дополнительной информации я могу только гадать. Вы сами размещаете форум или используете управляемый хостинг? Одна из причин может заключаться в том, что теги не включены в free-plan хостинга Discourse.