Using Drupal 6.10.

I want to add a link in say primary links to go directly to edit the users profile information. How would I go about doing that?

Thank you.

Comments

balaji.r’s picture

Hi
Initially all the menus are available in Navigation link only.
Kingly go http://www.YourDomain.com/admin/build/menu-customize/navigation and Find "My account" and click edit link, In that change Parent Item into Primary links.

bentonboomslang’s picture

I'm also interested in this. I don't think that balaji.r has quite answered the question.

To my understanding Passionate_Lass wanted an "Edit My Profile" link - not a "My Account" link. I.e. one that links to edit a Content Profile created node.

To add this, variables are needed to be included in the link which I don't think is possible using the Drupal interface.

I am in a very similar situation. I want to add a bunch of Secondary links - "My Profile", "My Messages", "My Friends" etc. under a "My Stuff" Primary Link.

I started to try to add some code to page.tpl.php...

		 $secondary_links['menu-423']['href']= 'content/' . $user->name;  /*  For the My Profile Link */
		/*  $secondary_links['menu-426']['href']= For the Messages Link */
		/*  $secondary_links['menu-425']['href']= For the My Contacts Link */ 
		/*  $secondary_links['menu-424']['href']= For the My Account Link */
		  
		 /* $primary_links['menu-422']['href']= For the My Stuff Link*/

...but soon realised that things weren't so simple as I am using the Primary and Secondary links in the "Tabbed Navigation" kind of way i.e. different Secondary links depending on the active Primary link.

Does anyone know how to solve this problem? I presume there are others out there who wanted a "My Profile" link on their sites. How did others work around this?

B

robbertnl’s picture

This topic is old but I am curious how you fixed this. I had the same question.
I just thought that adding node/add/profile to the menu would solve this issue. It redirects to the edit profile page of the user (if a profile page is already made)