# 在侧边栏中显示类别图标的功能

**URL:** <https://meta.discourse.org/t/ability-to-display-category-icons-in-sidebar/243629>\
**Category:** Support\
**Tags:** sidebar, category-icons\
**Created:** [2022年十一月1日 15:58 UTC](https://meta.discourse.org/t/ability-to-display-category-icons-in-sidebar/243629 "2022-11-01T15:58:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2022年十一月1日 19:27 UTC](https://meta.discourse.org/t/ability-to-display-category-icons-in-sidebar/243629/4 "2022-11-01T19:27:36Z")

</div>

我们一直在内部讨论，希望在功能上更接近标签和分类，让标签也能像分类一样用颜色装饰，并且两者都能用图标装饰。

通过颜色和图标区分标签和分类，可以在帮助区分它们方面发挥巨大作用，避免在用户浏览社区讨论时“让人费神”。

所以，是的，我赞成在 Discourse 核心产品中全面实现这一点。但我不赞成创造一种混乱的、五颜六色的体验，或者让侧边栏的功能因为图标而更难使用。我喜欢 @pmusaraj 的截图示例，将分类样式设置为 `box`——这在侧边栏中效果会很好。

> [@pmusaraj](#):
>
> 这是将分类样式设置为 `box` 后的样子：
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/0/8/08ccf7985ed5a104ce2e8ee56f7cad8abc963e1b.png)

我认为，Discourse for Teams 的侧边栏在分类装饰方面比新的侧边栏处理得更好。你可以使用 `category style` 管理员设置来选择 bar、box、bullet 或 none，侧边栏中的分类将以所选样式显示，而且它们看起来都非常棒！请看截图。

 ![Screen Shot 2022-11-01 at 12.25.17 PM](https://global.discourse-cdn.com/meta/original/4X/2/4/6/246cc7e7356aed58dd386b42741b29e05082a34c.png) ![Screen Shot 2022-11-01 at 12.24.53 PM](https://global.discourse-cdn.com/meta/original/4X/4/0/b/40b7567e5f387a5a62d5b48a0699fe9424f61685.png)

 ![Screen Shot 2022-11-01 at 12.24.04 PM](https://global.discourse-cdn.com/meta/original/4X/8/7/c/87cd89777ccdd757448495374aaef33d12ed4b92.png) ![Screen Shot 2022-11-01 at 12.23.17 PM](https://global.discourse-cdn.com/meta/original/4X/4/6/1/461d0058502e1687c430e86f461dbcf64f6d86f9.png)

---

_[View the full topic](https://meta.discourse.org/t/ability-to-display-category-icons-in-sidebar/243629)._
