This module allows us to use distinct menus as if they were submenus of a parent.
Why? You may find splitting larger menus into smaller submenus is easier to manage. You can also assign different permissions per menu.
This module relies on the Context Active Trail https://www.drupal.org/project/context_active_trail module to handle the active trails.
Requires patch for bug in Context Active Trail module: https://www.drupal.org/project/context_active_trail/issues/3268667
We have an about menu which we want to appear as a sub menu beneath the
About Us link in the main menu.
Steps:
- Create one context
- Add the condition In Menu Tree and select the
aboutmenu. - Add an Active Trail reaction pointing to the Our Services link in the
mainmenu. - Add a Menu Join reaction selecting Parent Menu.
We want events nodes to appear beneath the Events link in the an about menu
which in turn should appear as a sub menu beneath the About Us link in the
main menu.
Steps:
- Create 1st context
- Add the condition Content Type = Event.
- Add an Active Trail reaction pointing to the About Us link in the
mainmenu. - Add a Menu Join reaction selecting Parent Menu.
- Create 2nd context
- Add the condition Content Type = Event.
- Add an Active Trail reaction pointing to the Events link in the
aboutmenu. - Add a Menu Join reaction selecting main menu as the parent menu.