What variables are available to use in menu items?
Since menu items are all URLs I was kinda hoping that the variables for pathauto will ought to work so I included those variables in my menu links. As it turns out it does not work at all. I also use [$user->uid] but its also not working. I'm constructing a menu and I need the variables for 'edit profile' [user/%username/edit], 'my blog'[blog/%username], 'my profile' (I know I could just use 'user' and it will lead to mysite.com/user. But it would be nice if it could be mysite.com/user/username), 'track'[user/%username/track] , 'my contenttype'[contenttype/%username] and some other stuff. How are we going to implement variables in our menu url?
I take a look at 'me' module which gives us variable to use in our menu items but it hasn't been active for over a year now. Are there any similar modules you know of?
Advice much appreciated.
Comments
Comment #1
add1sun commentedThis isn't a Nice menus issue since it seems like you are talking about using Tokens in you menu URLs. (Pathauto relies on Token module to use those handy placeholders - it is not core functionality.) NM is just about displaying the menu items, not creating the links for them.