It would be nice if the menu system supported #attributes for menu items. My particular interest is being able to specify an id/class to allow jQuery manipulation of the menu. Another option would be to automatically generate an id for each menu link.

Comments

RobRoy’s picture

Any CSS gurus concur that we just need to apply #attribues to the LI? Or, does the A need any action?

jennycita’s picture

I'm not exactly a css guru... but I found this topic because I really wanted to add an accesskey to a menu item. #attributes on the Form API allow me to add an access key to a submit button... looking for something similar in menus. The attribute in this case would need to be applied to the A, not the LI.

dpearcefl’s picture

Is there any interest (or a need) for this any longer?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.