Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Feature request to have Menu Block module in core, and remove Main/Secondary menu variables.
Comments
Comment #1
kika CreditAttribution: kika commentedThanks Jeff to surface it! See #503810: Convert primary and secondary menus to blocks for related work. Not sure we need the whole menu_block UI/functionality, some of it's advanced functionality is quite ...well... advanced.
Comment #2
dman CreditAttribution: dman commentedAs with any migration from contrib to core, some things will certainly be streamlined I imagine.
However, think of the cruft removed when primary/secondary link handling become just menu slices :^)
Comment #3
catchJust a quick thing with primary links. We should have the ability in core to know that the primary links is a just a single level of links, and change the caching strategy for it if so (to be global across the site rather than per path). If you have a site with a million paths, you have to generate the same menu tree a million times at the moment which is a waste if it's really simple. Sorry for off topic rant - I agree with getting some of this functionality into core and getting rid of the special cases too :)
Comment #4
JohnAlbinSee #503810: Convert primary and secondary menus to blocks