Page 1 of 1

Use $username in a hyperlink

Posted: Thu Mar 11, 2010 12:47 pm
by Sitelabs
Hello,

First of all my apologies for my poor english.

What i am trying to accomplish is that a user logged in trough the front end user system is redirected or has the possibility to go to his own page trough a link.

For example user: Sander loges in through FEU. he will be directed to the page where he can change his setting and so on. I want to add a link to a page customer/sander.html

First i managed to do this by using the urlparremeter in cms_selflink,

Code: Select all

{cms_selflink page="customer" urlparam="$username" text="customer page"} 
I was directed to the page customerSander (in this example) and it wasn't nice but it worked.

however i turned to the nice url and then this trick won't work anymore.

anyone has an idea? i tried a custom tag but my PHP is al little limited.

Thanks in advance.
Sander