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.
By doctorallen on
On Drupal 8
I have a main navigation, which has three depths, for example:
(https://i.imgur.com/GFqGgNu.png)
What I want to do is on the "Stuff" pages, I want a sidebar with just the items underneath that level 1 item. It doesn't seem like I can do this without breaking each level 1 item into separate menus, then building my "main" menu from all of those sub menus. Is there a way to do this in core that I'm just not seeing? Is there a module that I need to be able to choose which level 1 item I want to choose from the menu when creating the menu block?
Thanks,
Comments
You can use https://www
You can use https://www.drupal.org/project/menu_block module to achieve this functionality. It allow you to create a new block with 2nd level of menu items. Don't break menu otherwise it will become pain to handle it in future.
This doesn't help me, this
This doesn't help me, this module is part of Drupal 8 core, and is exactly as I stated above. I want to list 2nd level nav items for only one of the first level nav items, not all of the 1st level items, so I need to be able to choose which 1st level nav item I want to display from.
You can use the appropriate
You can use the appropriate patch from https://www.drupal.org/node/2594425 to make the sidebar menu following the level 1 items and the main menu showing all items on level 1 and 2.
Rico Van de Vin
Finlet
rico@finlet.eu
https://www.finlet.eu
+31 085 0656 724