Discourseのタグに関する管理者ガイド

:bookmark: このガイドでは、Discourseタグの仕組み、タグ設定の構成方法、サイト全体でのタグの管理方法について説明します。

:person_raising_hand: 必要なユーザーレベル:管理者

Discourseでのタグ管理

Discourseのタグは、カテゴリを超えてコンテンツを整理およびフィルタリングするための強力な方法を提供します。このガイドでは、管理者がタグの設定と管理について知っておくべきすべてを網羅します。

概要

  • 管理パネルでタグ設定を構成する
  • タグの作成、管理、一括変更
  • 自動タグ付けの設定
  • タググループを使用して関連タグを整理する

タグ設定の構成

タグ設定は、サイト設定の「Categories and Tags」セクションにある管理パネルで見つけることができます。

タグ付けはデフォルトで有効になっています。タグを無効にするには、tagging_enabled設定のチェックを外します。

主なタグ設定には以下が含まれます。

  • トピックあたりの最大タグ数 (max_tags_per_topic)
  • 最大タグ長 (max_tag_length)
  • タグ作成が許可されるグループ (create_tag_allowed_groups)
  • トピックへのタグ付けが許可されるグループ (tag_topic_allowed_groups)
  • タグ編集が許可されるグループ (edit_tags_allowed_groups)
  • 最大タグ検索結果数 (max_tag_search_results)
  • タグの並べ替えオプション (tags_sort_alphabetically)

タグの作成と適用

タグは初回使用時に作成されます。トピックの作成または編集時に、タグ作成権限を持つユーザーは、カテゴリ選択の隣にタグ選択ツールが表示されます。

トピックのクイック編集時にタグを調整することもできます。

:information_source: カテゴリは、その設定に応じて、そのカテゴリのトピックに適用できるタグをオプションで制限できます。

タグによるトピックのフィルタリング

サイトの /tags ページで、使用頻度のカウントとともにタグの完全なリストを見つけることができます。タグを選択すると、そのタグが適用されたトピックのリストが表示されます。

:information_source: 複数のタグで同時にトピックをフィルタリングするには、次のURL構文を使用します。
https://discourse.example.com/tags/intersection/TAG1/TAG2

個々のタグの管理

特定のタグを管理するには:

  1. サイトの /tags ページに移動します
  2. 管理したいタグを選択します
  3. レンチアイコンのボタンを選択して、名前変更、削除、同義語管理のオプションを表示します

タグの一括管理

複数のトピックで一度にタグを変更するには:

  1. タグでフィルタリングされたトピックリストにアクセスします
  2. トピックリストの左上にあるリストアイコンの一括選択ボタンを押します
  3. トピックを手動で選択するか、「すべて選択」オプションを使用します
  4. トピックリストの右上隅に表示されるレンチアイコンの管理ボタンを使用して、Bulk Actionsモーダルを開きます
  5. 3つのタグオプションから選択します。
    • Replace Tags - 既存のすべてのタグを新しいタグに置き換えます
    • Append Tags - 既存のタグを保持しながら新しいタグを追加します
    • Remove Tags - 既存のすべてのタグを削除します

高度なタグ管理

/tags ページに移動し、右上隅にあるタグ管理ボタンを探すか、/tag_groupsに直接移動します。

ここから次のことができます。

  • タググループの管理
  • タグの一括アップロード
  • 使用されていないタグの削除

ウォッチワードを使用したトピックの自動タグ付け

ウォッチワード機能を使用すると、指定された単語がコンテンツに出現したことに基づいてトピックに自動的にタグを付けることができます。

設定するには:

  1. /admin/customize/watched_words/action/tagに移動します
  2. 特定のタグをトリガーする単語またはフレーズを追加します

:warning: この機能は、既存のトピックにタグを遡及的に適用することはありません。

重要な考慮事項

  • タグはトピックに適用され、トピック内の個々の投稿には適用されません
  • ユーザーが投稿内で #tagname のようなものを入力すると、そのタグへのリンクが作成され、投稿にタグが適用されるわけではありません
  • タググループを使用して、特定のタグを使用できるユーザーグループを制限できます

関連記事

「いいね!」 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?