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.

eZ debug

Timing: Jan 19 2025 01:16:14
Script start
Timing: Jan 19 2025 01:16:14
Module start 'layout'
Timing: Jan 19 2025 01:16:14
Module start 'content'
Timing: Jan 19 2025 01:16:14
Module end 'content'
Timing: Jan 19 2025 01:16:14
Script end

Main resources:

Total runtime0.7159 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 590.2734152.6250
Module start 'layout' 0.00570.0026 742.898439.4453
Module start 'content' 0.00830.7059 782.3438520.8594
Module end 'content' 0.71420.0016 1,303.20318.1563
Script end 0.7158  1,311.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4558160.0002
Check MTime0.00130.1848160.0001
Mysql Total
Database connection0.00080.110110.0008
Mysqli_queries0.673294.0351540.0125
Looping result0.00050.0692520.0000
Template Total0.688196.120.3441
Template load0.00200.279420.0010
Template processing0.686095.832820.3430
Template load and register function0.00020.033110.0002
states
state_id_array0.00060.090010.0006
state_identifier_array0.00070.099020.0004
Override
Cache load0.00160.2209110.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098620.0004
Fetch class attribute name0.00130.176530.0004
XML
Image XML parsing0.00080.116120.0004
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00090.1286160.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs