Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

menu_item_fields

4,012 sites Security covered
View on drupal.org
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.

Installation and usage

First enable the menu_item_fields_ui module since is needed to create the fields and view modes.

In order to render a menu with the configured fields a new block is provided with the module called "Menu with fields".

After the menu is built the UI module can be disabled in production just like the field_ui module.

Features

  • Add fields to menu items and sort their display.
  • Have different form modes for each menu. Create and enable a form mode with the same machine name as the menu.
  • 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 for each item.
    • Is up to the site builder to create it.
    • This field needs to store the string value of the display mode, for example: 'mega'.
    • The field that stores the view mode is configured on the block.

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.

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.

Notes

Inspired by the Menu Link Content fields module and of course Menu Link Extras.

Activity

Total releases
4
First release
Mar 2025
Latest release
2 months ago
Release cadence
114 days
Stability
50% stable

Release Timeline

Releases

Version Type Release date
2.1.0 Stable Feb 9, 2026
2.0.0 Stable Aug 28, 2025
2.0.0-rc1 Pre-release Mar 4, 2025
2.x-dev Dev Mar 4, 2025