Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Ok, I must be missing something obvious, but I'm having trouble adding a link to user/%/edit to the main menu. In the Menu UI, I clicked "add link," set the title to "Account settings," and then was at a loss about what to put for the path. I know how to generate a link to the account edit page using views, which is what I've always done before, but this time I actually need to add the link to the "Main Menu."

share|improve this question

2 Answers

up vote 4 down vote accepted

Try this module menu_token , it allows to use tokens in menu

Menu Token module provides tokens, that could be used in title or in path of menu items (links). For example, if you create a menu item with path: "user/[current-user:uid]", the url will be changed "on fly" to: "user/1" (assuming you are user 1).

share|improve this answer

You can't use % as a wildcard when adding a menu item like that.

The me aliases module can help you do it.

You install that module and then you can add a menu item to user/me/edit and it will go to the currently logged in user's edit page.

share|improve this answer
The module smile mentions is a good option too. – rooby Apr 30 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.