Topic: Change user menu Profile link to show user's actual profile
Hi,
I'm trying to change the user menu's 'Profile' link (the first one) to show the actual user's profile rather than their 'My page', since 'My page' is already the second link listed. Want an easy way for users to review their actual profile (say, after edits) rather than having to find their thumbnail some other way to get to their actual profile that others will see.
I'm working on header.tpl however I can't seem to get the reference to the logged in user correct and I have tried several different ways. This is the line I am working on ...
{anchor:url1="account/home/",url2="index.php?m=account_home",name="core|usermenu_outter_profile",class="outter"}
I'm trying to change it to something like this, but it is breaking the site.
{anchor:url1="{session.username}/",url2="index.php?m=account_home",name="core|usermenu_outter_profile",class="outter"}
or
{anchor:url1="<!-- {session.username} -->",url2="index.php?m=account_home",name="core|usermenu_outter_profile",class="outter"}
I'm just not sure how to get the session.username variable working within in the existing { ... } statement. I was able to get the variable to appear outside of the statement however, so I think I have the right variable.
Also, what is the difference/purpose of url1 versus url2?
Thanks for any advice or suggestions anyone can offer.
Glen