Menu Token module provides tokens, that could be used in title or in path of menu items (links). For example, if you create menu item with path: "user/[current-user:uid]", the url will be changed "on fly" to: "user/1" (assuming you are user 1).
Tokens are provided by Token module. Menu Token allows to use both global tokens and entity one: node, user, term. Entity tokens have several methods of substitution: from context, random and user defined.
Menu Token module implements Ctools plugin system and allows to plug in new token handlers.
Note: the most awesome features, like entity tokens support and plugin system, are implemented in 7.x-1.0-alpha3. Many thanks to fubhy for working on this.
The idea started here.
Known issues
There are modules that use same hook as Menu Token, they need to be executed in proper order. For example: Menu per Role works well with a weight of 5.
Acknowledgments
Development sponsored by Trellon.
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 2824 sites currently report using this module. View usage statistics.
- Last modified: September 19, 2011