Menu Link Attributes

Module Drupal Illustration Voir sur
Nb téléchargements : 54722


  • Code
  • Documentation
  • Miscellaneous
  • User interface




permet d'ajouter des attributs au liens de menu


Status : Published
Projects : Modules
Maintenance status : Actively maintained
Development status : Under active development
Supported Branches : 8.x-1.
shield Stable releases for this project are covered by the security advisory policy.


This module allows you to add attributes to your menu links or their wrapping <li> elements.

Installation ☝️

  1. Enable Menu Link Attributes module
  2. Grant Use menu link attributes permission to users which should be able to set attributes on menu items
  3. Set available attributes on /admin/config/menu_link_attributes/config

Screencasts 📺

Container attributes

In order to provide attributes for containers (wrapping <li> elements) you simply need to create a new attribute starting with container_, those will be applied on the container automatically.

Optional dependency

  • YAML Editor - Loads an Ace editor which makes YAML editing more fun

Toutes les informations proviennent du site