Menu Item Extras
46,641 sites
Security covered
This module adds extra fields directly to menu items, allowing you to enhance your menus without creating separate content types. It integrates with Drupal's core menu system, enabling features like a fieldable menu structure and custom view modes for individual menu items.
Menu Item Extras provides extra fields for the Menu Items without using additional entities. This module is NOT an alternative of all Mega Menu modules - it is unique implementation of Drupal core’s Menu system.
All fields are placed upon the Menu Item edit/add form and use core Menu link content entity for storing all data.
Requirements:
- This module uses core modules only.
Installation:
- Download and enable as normal module;
- Go to the menus list and edit menu which you want to have the extras.
Configuration:
- You can enable/disable extras per menu, by default we enable extras for the Main Menu. When extras is disabled, all data from the fields are removed;
- We added more suggestions for menus in regions. You could change menu template per region.
Like:menu--extras--main--header.html.twigmenu--extras--main--footer.html.twig
🇺🇦
This module is maintained by Ukrainian developers.Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Use cases:
- Creating a Mega Menu using Layout Builder in Drupal 8
by Phaze2 - Get a Fieldable Drupal Menu: Menu Item Extras Overview
by Lemberg - Drupal 8 Menu Item Extras Module
by Code Karate - How to Use the Menu Item Extras Module for Drupal 8
by OSTraining
Roadmap:
- 8.x-3.x:
- Stay tuned ;)
- 8.x-2.x:
- In active development. The main feature is managing fields, view display and form display as content entity (like node). Long story short - configured FieldUI integration for menu_link_content entity type.
- Other features:
-
- Base functionality implemented, Menu Link Content entity is full fieldable!!!
- Fixed templates.
- Added view mode field which gives control on view mode per item.
- Clear data from the extra entity field like View mode.
- Update path from the 1.x to 2.x
- Support views
- Demo modules which will demonstrate power of this module, and what magic you can do with it. Try it at Simplytest.me
- Fixed issue in core module that made this module possible to develop #2903161: Fix incorrect FieldFormatter id for "weight" field in base field definition in display options
Join our Drupal slack channel: #menu_item_extras