# 优化汉堡菜单中的分类列表

**URL:** <https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739>\
**Category:** Feature\
**Created:** [2018年七月19日 17:49 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739 "2018-07-19T17:49:28Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月24日 15:50 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/22 "2018-07-24T15:50:07Z")

</div>

It can be merged. I am waiting for PR approval.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月27日 16:41 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/23 "2018-07-27T16:41:10Z")

</div>

It’s merged and live on meta now.

 ![hamburger-categories](https://global.discourse-cdn.com/meta/original/3X/1/5/1523be735ee25cef0dd95fd7a8167f0e909d6e0d.png)

---

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2018年七月27日 20:43 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/24 "2018-07-27T20:43:48Z")

</div>

Is this enforced or will I be able to turn it off in site settings (i.e. revert back to the full category list)?

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月27日 20:46 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/25 "2018-07-27T20:46:54Z")

</div>

No, it doesn’t have any settings now.

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2018年七月27日 21:05 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/26 "2018-07-27T21:05:10Z")

</div>

@vinothkannans All the category links and the “more” link don’t have hover effect.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2018年七月27日 21:05 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/27 "2018-07-27T21:05:48Z")

</div>

I find the “more” a bit misleading. It suggests the list will expand when in fact it is a link to the categories page.

The two are different UX, the one is a shorter list of category titles, the other a list of categories interspersed with a lot of other information. Personally, for getting to a specific category “quickly” the shorter the list the better.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年七月27日 21:47 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/28 "2018-07-27T21:47:56Z")

</div>

I think the “more” link should count how many more categories there are @vinothkannans

Also maybe put it on the same line?

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/7/9736ef583c949f5751984ce7e01b6e55c766ba68.png)

Ignore the font color mismatch, just a mockup. Or hmm maybe _even simpler than that?_ What do you think of this @awesomerobot?

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/2/52011ebff245e3578e81539fdb0d3db2d77fb5dd.png)

Yes let’s go with the above @vinothkannans

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年七月27日 22:12 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/29 "2018-07-27T22:12:18Z")

</div>

To me 6 feels a bit too little, can we double it?

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2018年七月27日 22:18 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/30 "2018-07-27T22:18:30Z")

</div>

I am satisfied with the number of categories, but I have several people wrote that 6 is not enough. Can be to withdraw the number of in administrative interface. Just a suggestion.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年七月27日 23:11 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/31 "2018-07-27T23:11:02Z")

</div>

Doubling is a bit extreme, let’s try 8 for now @vinothkannans .. or just make it a site setting and people can go crazynuts 🐭 if they want to put 99 in there

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年七月27日 23:20 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/32 "2018-07-27T23:20:34Z")

</div>

Yeah I think you are right site setting is unavoidable here.

Default of 8 for now is fine

---

<div class="post-metadata">

**Author:** ![Hector](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hector](https://meta.discourse.org/u/Hector)\
**Post date:** [2018年七月27日 23:39 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/33 "2018-07-27T23:39:02Z")

</div>

> [@Mittineague](#):
>
> I find the “more” a bit misleading. It suggests the list will expand when in fact it is a link to the categories page.

I agree. And it’s the same link of the _Category_ title a few pixels above. The same link with different texts smells like something is wrong with the UX.

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2018年七月28日 11:23 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/34 "2018-07-28T11:23:19Z")

</div>

Hide categories

1. Open the menu and select the category UX

 ![UX](https://global.discourse-cdn.com/meta/original/3X/b/f/bfdb200036afd0466ed2b5c0fab2cedbfbfbdc11.jpg)

1. In the profile

 ![UX-2](https://global.discourse-cdn.com/meta/original/3X/4/e/4e25f6c9123682f32ee0dea3460128173d394c5a.jpg)

1. I’m updating the page.

The category remained in the menu

 ![UX](https://global.discourse-cdn.com/meta/original/3X/b/f/bfdb200036afd0466ed2b5c0fab2cedbfbfbdc11.jpg)

---

<div class="post-metadata">

**Author:** ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)\
**Post date:** [2018年七月28日 22:13 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/35 "2018-07-28T22:13:59Z")

</div>

![2018-07-29_01-12-57](https://global.discourse-cdn.com/meta/original/3X/9/c/9c7d1081a2257b245304f4e3c3aa9ed629ed9942.png)

Please make it possible to save old behavior (without More!). It’s real pain for our users.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月30日 09:18 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/36 "2018-07-30T09:18:27Z")

</div>

Both the changes are done and available in meta. Introduced new site setting `hamburger menu categories count` (with default 8) to control the number of categories to display.

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2018年七月30日 09:23 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/37 "2018-07-30T09:23:01Z")

</div>

Muted categories will not be removed from the menu?

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月30日 09:23 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/38 "2018-07-30T09:23:33Z")

</div>

Yes, now I’m working on that.

P.S. @Stranik I’ve fixed it [here](https://github.com/discourse/discourse/commit/249b16e8e3417cb45cc0209220f509573e9d22d6).

---

<div class="post-metadata">

**Author:** ![GuidoD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guidod/32/292621_2.png) [@GuidoD](https://meta.discourse.org/u/GuidoD)\
**Post date:** [2018年七月30日 12:48 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/39 "2018-07-30T12:48:05Z")

</div>

> [@codinghorror](#):
>
> or just make it a site setting

I would appreciate a site setting.

We got complains from our users with the 6 categories only and even 8 will not really help.  
I myself as one of the admins had there about 175 categories and sub categories so for myself the smaller menu is fine. 😉  
But our users where used to use the hamburger menu and did not really use the categories overview page.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年七月30日 12:49 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/40 "2018-07-30T12:49:33Z")

</div>

> [@vinothkannans](#):
>
> Introduced new site setting `hamburger menu categories count` (with default 8) to control the number of categories to display.

It’s already available 😉

---

<div class="post-metadata">

**Author:** ![GuidoD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guidod/32/292621_2.png) [@GuidoD](https://meta.discourse.org/u/GuidoD)\
**Post date:** [2018年七月30日 12:53 UTC](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739/41 "2018-07-30T12:53:28Z")

</div>

> [@vinothkannans](#):
>
> It’s already available

sorry I had missed your answer, my fault ☹  
Very good news, so I will update to the latest version and will set the value a little bit higher for our users.

[上一頁](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739.md?page=1)

[下一頁](https://meta.discourse.org/t/improving-the-category-list-in-the-hamburger-menu/92739.md?page=3)
