getting user_account email

Author Message

Menno van Drunen

Thursday 22 April 2004 5:17:31 am

Hi I modified the user class and try to display the user E-mail using:

{attribute_view_gui attribute=$node.object.data_map.user_account.content.email}

As I found somewhere on the ez site. However this is not working. Any ideas about what I do wrong?

{attribute_view_gui attribute=$node.object.data_map.phone}

Is working fine.

Rgds,

Menno

Paul Forsyth

Thursday 22 April 2004 5:35:04 am

$node.object.data_map.user_account.content.email isnt an attribute im afraid. $node.object.data_map.user_account is.

you can override 'design/standard/templates/content/datatype/view/ezuser.tpl' to display the user account datatype the way you want or you could just display the email directly. you almost have it:

Try

{$node.object.data_map.user_account.content.email|wash(email)}

paul

--
http://www.visionwt.com

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 18 2025 19:39:21
Script start
Timing: Jan 18 2025 19:39:21
Module start 'layout'
Timing: Jan 18 2025 19:39:21
Module start 'content'
Timing: Jan 18 2025 19:39:21
Module end 'content'
Timing: Jan 18 2025 19:39:21
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.0313152.6250
Module start 'layout' 0.00520.0028 741.656339.4453
Module start 'content' 0.00800.0045 781.101689.3359
Module end 'content' 0.01250.0019 870.437530.3047
Script end 0.0144  900.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.8907140.0002
Check MTime0.00106.7524140.0001
Mysql Total
Database connection0.00064.507110.0006
Mysqli_queries0.002416.748830.0008
Looping result0.00000.090910.0000
Template Total0.001611.210.0016
Template load0.00085.575210.0008
Template processing0.00085.588410.0008
Override
Cache load0.00053.725110.0005
General
dbfile0.00031.848580.0000
String conversion0.00000.061240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs