Skip to content

Repository files navigation

Menu Join

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.

Important!

Requires patch for bug in Context Active Trail module: https://www.drupal.org/project/context_active_trail/issues/3268667

Examples

Example 1 - Creating breadcrumbs for a submenu

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 about menu.
  • Add an Active Trail reaction pointing to the Our Services link in the main menu.
  • Add a Menu Join reaction selecting Parent Menu.

Example 2 - Adding nodes by type beneath a link in a submenu

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 main menu.
    • 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 about menu.
    • Add a Menu Join reaction selecting main menu as the parent menu.

Releases

Packages

Contributors

Languages