Firstname/Lastname in templates?

Author Message

Clemens T

Tuesday 20 September 2005 3:23:37 am

Heya all!
I'm having difficulty showing the details of users in my template, here's what I got so far(63 is a User_Group which contains users...)


{def $users=fetch( 'content', 'tree', 
                   hash( 'parent_node_id', 63 ) )}
{foreach $users as $user}

{*doesn't output anything??? *}
{$user.last_name|wash}, {$user.first_name|wash},
 {$user.user_account.email}

{/foreach}


How come the $user.last_name etc doesn't work? Anyone?
Thanks!
Clemens

Vytautas Germanavičius

Wednesday 21 September 2005 2:57:17 am

i think you need to use $user.data_map.last_name

To see what attributes has object do this: {$user|attribute(show,3)}
3 means how much want to see

{set-block scope=root variable=cache_ttl}0{/set-block}

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