Module Description
The main purpose of the module is to be able to add fields to custom menu items and render them with different view modes.
Usage In order to render a menu with the configured fields a new block is provided with the module called "Menu with fields".
Features
* Add fields to menu items and sort their display.
* Show fielded menu items with a block chosing the view mode.
* Configure additional options on the formatter like the rel and target attributes.
* Add more attributes with the Link attributes module.
* Optionally have a field on the menu link entity that overrides the display mode.
* Is up to the site builder to create it.
* This field needs to store the string value of the display mode, for example: 'mega'.
Similar modules
* Menu item extras:
* Provides a bundle for each menu while this module does not add any new bundle.
* With Menu item extras the children output can be sorted on the "Manage display" interface. On Menu Item Content Fields the children are below the parent since the template tries to be as close as possible to Drupal core but you can override it.
* In general this module tries to be more simple trying to override as few templates as posible.
Menu Link Content Fields. Pretty much the same as this module. Chime in #3268241: List and join efforts with menu_item_fields if you want both modules to join efforts.
Future improvements Being able to load the field information into other kind of menu items so all the menu items can be rendered similarly (e.g with icons) and not only custom menu items.
If you believe that fields on menu items are a good feature to have in Drupal core there is a proposal to make it so since is just enabling an interface.
Real time communication You can join the #menu-item-fields channel on drupalchat.me.
Notes Inspired by the Menu Link Content fields module and of course Menu Link Extras.
Usage In order to render a menu with the configured fields a new block is provided with the module called "Menu with fields".
Features
* Add fields to menu items and sort their display.
* Show fielded menu items with a block chosing the view mode.
* Configure additional options on the formatter like the rel and target attributes.
* Add more attributes with the Link attributes module.
* Optionally have a field on the menu link entity that overrides the display mode.
* Is up to the site builder to create it.
* This field needs to store the string value of the display mode, for example: 'mega'.
Similar modules
* Menu item extras:
* Provides a bundle for each menu while this module does not add any new bundle.
* With Menu item extras the children output can be sorted on the "Manage display" interface. On Menu Item Content Fields the children are below the parent since the template tries to be as close as possible to Drupal core but you can override it.
* In general this module tries to be more simple trying to override as few templates as posible.
Menu Link Content Fields. Pretty much the same as this module. Chime in #3268241: List and join efforts with menu_item_fields if you want both modules to join efforts.
Future improvements Being able to load the field information into other kind of menu items so all the menu items can be rendered similarly (e.g with icons) and not only custom menu items.
If you believe that fields on menu items are a good feature to have in Drupal core there is a proposal to make it so since is just enabling an interface.
Real time communication You can join the #menu-item-fields channel on drupalchat.me.
Notes Inspired by the Menu Link Content fields module and of course Menu Link Extras.
Module Link
Project Usage
1445
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The module aims to solve the issue of adding fields to custom menu items and rendering them with different view modes.
Data Name
menu_item_fields