Hey guys, I'm new to Drupal and I'm still trying to understand all these theme template files and what not. I have a basic question, how do I change the "My Account" string in the User Account menu link to the actual username. Like for example, on Facebook it will just show my real name that will redirect me to my profile not a "My Account" label.

Thanks guys.

Comments

pixelsweatshop’s picture

No need to mess with the tpl files for this one. Use the menu token module to place the user:name token in your link title.

The 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).

http://drupal.org/project/menu_token

ntag’s picture

hey thanks for the quick reply man i greatly appreciate it!

deanflory’s picture

And just for others looking for the token for a URL to their account:
[current-user:url:path]