$user.login

Author Message

Rene Sack

Wednesday 15 June 2005 2:07:22 pm

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!

Greenvalley is waiting

Tom Couwberghs

Wednesday 15 June 2005 2:20:29 pm

Hi Rene,

Try this:

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

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,

Tom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.