This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » $user.login



Wednesday 15 June 2005 11:07:22 pm - 1 reply

Please help!

I want to include the login and the email attributes from the user class into the forum below the picture for each post. I tried this now for 7 hours without any success! Using the <b>current_user</b> function only brings up the login name of the user who is currently logged in, and not the login name of the User responsible for the reply. I&acute;ve also searched through the whole reference guide without any success!

Please help!

Modified on Wednesday 15 June 2005 11:09:25 pm by Rene Sack

Wednesday 15 June 2005 11:20:29 pm

Hi Rene,

Try this:

{def $user=fetch('user', 'current_user')}

The attribute(show) function will give you an overview of an object's attributes, you can adress attributes with a '.'. So to display the login you would use {$user.login}

Hope this helps,



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from