# 将用户头衔链接到群组

**URL:** https://meta.discourse.org/t/linking-user-titles-to-groups/19169
**Category:** Site Management
**Tags:** groups, how-to
**Created:** [2014年八月22日 14:28 UTC](https://meta.discourse.org/t/linking-user-titles-to-groups/19169 "2014-08-22T14:28:18Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [2014年八月22日 14:28 UTC](https://meta.discourse.org/t/linking-user-titles-to-groups/19169/1 "2014-08-22T14:28:18Z")

</div>

> 🔖 本指南说明了如何将用户的头衔链接到 Discourse 中的群组，允许用户点击头衔以查看相关群组页面。
> 
> 🙋 所需用户级别：管理员

本指南将引导您完成将用户头衔与 Discourse 中的特定群组相关联的过程。正确设置后，点击用户的头衔将导航到链接的群组页面。

> ℹ 在此示例中，我们使用名为 `anonymous` 的用户和一个标题为 `Discourse` 的群组。

## 摘要

要将用户头衔链接到群组，您需要：

1. 创建一个群组并设置一个默认头衔
2. 将用户添加到群组
3. 将群组设置为用户的首要群组
4. 将群组的默认头衔分配给用户

## 分步指南

### 1. 创建一个群组并设置一个默认头衔

1. 导航到“管理”区域
2. 转到“群组”部分
3. 创建一个新群组或选择一个现有群组
4. 在群组的“成员资格”页面上，设置一个“默认头衔”  
  
 ![Group membership page with default title field](https://global.discourse-cdn.com/meta/original/4X/f/b/4/fb423901f82631fb1c398a9c054e44ca7195571c.png)

### 2. 将用户添加到群组

1. 转到用户个人资料页面
2. 点击“管理”按钮
3. 在“群组”部分，将用户添加到所需的群组  
  
 ![Adding a user to a group](https://global.discourse-cdn.com/meta/original/4X/f/4/3/f43840c6a0d04421cf5dadabf280eda60328f34c.png)  
 ![User added to the group](https://global.discourse-cdn.com/meta/original/4X/5/b/b/5bbc53a1561b2d324c0d72ee5ff70ab410d2c0c4.png)

### 3. 将群组设置为用户的首要群组

1. 在用户的管理页面上，找到“首要群组”下拉菜单
2. 选择所需的群组作为首要群组  
  
 ![Setting the primary group](https://global.discourse-cdn.com/meta/original/4X/c/2/9/c295d3c41cf17acd53682f65f96d1908be8b7ac8.png)

> ℹ 设置用户的首要群组有其他影响。有关更多信息，请[阅读此主题](https://meta.discourse.org/t/what-does-selecting-primary-group-for-a-user-do/25857)。

### 4. 将群组的默认头衔分配给用户

您可以从管理页面或用户偏好设置中设置用户的头衔。

从用户管理页面：

1. 找到“头衔”字段
2. 选择群组的默认头衔  
  
 ![Setting the title from the admin page](https://global.discourse-cdn.com/meta/original/4X/1/0/5/10530cbd257566f0f61d4125b22ff26f69d05721.png)

从用户偏好设置：

1. 转到用户个人资料
2. 点击“偏好设置”选项卡
3. 导航到“帐户”部分
4. 找到“头衔”字段并选择群组的默认头衔  
  
 ![Setting the title from user preferences](https://global.discourse-cdn.com/meta/original/4X/5/c/2/5c2bb7d376f4d1e8f3b780f1ff4835e74ad53a6b.png)

## 验证设置

完成这些步骤后，用户的头衔现在应该可以点击并链接到群组页面。

 ![Clickable user title linking to group page](https://global.discourse-cdn.com/meta/original/4X/c/1/d/c1d9e2a3edc42e5e461b51a33c2b10bb71f0609f.png)

## 附加说明

- 此过程不适用于自动或系统群组，例如“staff”群组。
- 某些站点会创建单独的群组（例如，“team”群组）以便为员工启用此功能。

---

_[View the full topic](https://meta.discourse.org/t/linking-user-titles-to-groups/19169)._
