on some cases I don't want to set id/class one by one for each of menu item and if module can provide option to add menu id to the id/class will be great.


Dave Reid’s picture

Version: 6.x-1.4 » 7.x-1.x-dev

This would be a good idea. With the module now ported to D7, we can easily add token integration (and consider backporting it to D6).

Dave Reid’s picture

Title: provide token or options to add menu id to id or class » Use tokens for menu attributes
adam-delaney’s picture

+1 for this feature

stevesmename’s picture

Status: Active » Needs review
Issue tags: +Menu Token Attributes

Hello, this is ready for testing. I was working on a project that could had used this and saw the flexibility it adds for other websites I build in the future.

Menu Token Attributes (sandbox)

First I saw this as a patch for the menu_attributes module, but after writing the steps that was involved I noticed this is better as a standalone module that is dependent on menu_attributes instead. Note menu_token module is not required but adds benefit so that all functionality in menu links can be tokenized.

Next step, is testing by the community and then applying for a project page. Cheers!