# 在汉堡菜单中排列类别

**URL:** <https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073>\
**Category:** Feature\
**Created:** [2020年八月6日 19:53 UTC](https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073 "2020-08-06T19:53:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)\
**Post date:** [2020年八月6日 19:53 UTC](https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073/1 "2020-08-06T19:53:43Z")

</div>

继续讨论 [如何在汉堡菜单中选择分类顺序？](https://meta.discourse.org/t/how-can-i-choose-the-categories-order-in-the-hamburger-menu/131297/5)：

> [@awesomerobot](#):
>
> 汉堡菜单中的分类顺序会根据每位用户最常使用的分类而有所不同。

您好，我认为如果网站管理员能够自行决定汉堡菜单中分类的排列方式，将是一个很好的功能。

例如，在我的 Discourse 实例中，有数十个分类，这会让一些参与者感到困惑。

因此，将汉堡菜单中显示的分类限制为前 6-8 个将会很理想。这样做的目标是简化和明确主要讨论区域的查找位置。

---

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2020年十二月12日 20:00 UTC](https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073/2 "2020-12-12T20:00:57Z")

</div>

是的，如果至少能按照 `/categories` 列表的顺序显示在汉堡菜单中（当“固定分类位置”为真时），那会有所帮助。

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2020年十二月12日 21:11 UTC](https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073/3 "2020-12-12T21:11:33Z")

</div>

答案依然不变。

> [@renato](#):
>
> 已固定分类位置

这是管理员的设定，适用于 `/categories` 页面。

用户可能对某些分类更感兴趣，因此他们在汉堡菜单中看到的分类是基于这些标准生成的。

> [@awesomerobot](#):
>
> 优先级如下：
> 
> 1. 已关注的分类
> 2. 已追踪的分类
> 3. 关注首帖的分类
> 4. 用户最常访问的分类
> 5. 站点最常访问的分类

作为管理员，你可以通过 `header_dropdown_category_count` 设置来控制汉堡菜单中渲染的分类数量，默认值为 8。

---

<div class="post-metadata">

**Author:** ![elRicharde](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@elRicharde](https://meta.discourse.org/u/elRicharde)\
**Post date:** [2021年三月29日 14:57 UTC](https://meta.discourse.org/t/arrange-categories-in-hamburger-menu/160073/4 "2021-03-29T14:57:36Z")

</div>

我认为在这里赋予管理员更多权限会非常棒。随着我们论坛中“Gregorys”数量的增长，如果管理员愿意，让每位用户在论坛中拥有统一的外观会更好。

由于我们的论坛拥有大量分类，我们使用了子分类，因此只显示顶级“Gregorys”将对我们的论坛有所帮助。希望您能重新考虑这一点。

此致  
Richard
