Voir sur Drupal.org
Nb téléchargements :
88047
Components
- Code
- Documentation
- Miscellaneous
- User interface
Documentation
Demo
Licence
https://www.gnu.org/licenses/old-licenses/gpl-2.0.htmlpermet d'ajouter des attributs au liens de menu
Release
Status : Published
Projects : Modules
Maintenance status : Actively maintained
Development status : Under active development
Project categories : Administration tools
Supported Branches :
8.x-1.
8.x-1.7
released
23 March 2026
Works with Drupal:
^8 || ^9 || ^10 || ^11
Install:
composer require 'drupal/menu_link_attributes:^1.7'
Covered by Drupal's security advisory policy
Release type : Bug fixes
Description
This module allows you to add attributes to your menu links or their wrapping <li> elements.
Installation ☝️
- Enable Menu Link Attributes module
- Grant Use menu link attributes permission to users which should be able to set attributes on menu items
- 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 drupal.org