Skip to content
Snippets Groups Projects
Select Git revision
  • 8.x-1.0-beta5
  • 8.x-1.x default
  • 8.x-1.5
  • 8.x-1.4
  • 8.x-1.3
  • 8.x-1.3-rc3
  • 8.x-1.3-rc2
  • 8.x-1.3-rc1
  • 8.x-1.2
  • 8.x-1.1
  • 8.x-1.0
  • 8.x-1.0-beta4
  • 8.x-1.0-beta3
  • 8.x-1.0-beta2
  • 8.x-1.0-beta1
15 results

menu_link_attributes

  • Open with
  • Download source code
  • user avatar
    Merge pull request #36 from yannickoo/feat/container-attributes-ux
    Yannick authored and GitHub committed
    Improves UX of container attributes
    bb2c8904
    History

    Menu Link Attributes

    Allows you to add attributes to your menu links.

    Installation

    1. Install the module the drupal way
    2. Edit a menu item and edit attributes
    3. Add more attributes if needed on configuration page
    4. Grant Administer menu link attributes permission to users which should be able to edit menu link attributes

    Container attributes

    In order to provide attributes for the wrapping <li> element you can either:

    • Create an attribute starting with container_, those will be used as container attribute automatically
    • Create an attribute and set container: true

    Contributing

    Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.