# 当加入群组时，自动将分类添加到用户侧边栏

**URL:** https://meta.discourse.org/t/automatically-add-categories-to-users-sidebar-when-added-to-group/258940
**Category:** Feature
**Tags:** sidebar, completed
**Created:** [2023年三月21日 18:00 UTC](https://meta.discourse.org/t/automatically-add-categories-to-users-sidebar-when-added-to-group/258940 "2023-03-21T18:00:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [2023年三月21日 18:20 UTC](https://meta.discourse.org/t/automatically-add-categories-to-users-sidebar-when-added-to-group/258940/2 "2023-03-21T18:20:40Z")

</div>

如果我理解正确的话，您指的是用户侧边栏中显示的类别列表？

 ![Screenshot 2023-03-21 at 2.12.02 PM](https://global.discourse-cdn.com/meta/original/4X/2/b/b/2bbb964259f789241149ea6a3397c1084d74d24b.png)

有一个站点设置 `default sidebar categories`：

 ![Screenshot 2023-03-21 at 2.13.54 PM](https://global.discourse-cdn.com/meta/original/4X/4/6/f/46fa35e8392b8372d64509e05bd9b46c3b7417e8.png)

如果将私有类别添加到那里，一旦用户加入该组，它应该会显示在他们的侧边栏中，并在他们离开该组时消失。如果他们之前自己编辑过侧边栏，可能存在一些边缘情况需要手动添加。

由于用户可以自己添加/删除内容，因此在您的站点上可能还需要一个主题来参考，以防用户在执行此操作时需要帮助。

---

_[View the full topic](https://meta.discourse.org/t/automatically-add-categories-to-users-sidebar-when-added-to-group/258940)._
