Finding the email-adress...

Author Message

Atle Enersen

Saturday 18 January 2003 12:16:30 am

I have a full_class_*.tpl for an article content object that shall display both the authors name and email-adress. The authors name is no problem, this is found via the {$content_object.owner.name} (or {$node.object.owner.name} if one prefers) but how the he.. do I find the rest of the userdata (from ezuser) for the owner/creator...?

As I understand the owner.name refers to ezcontentobject (in the DB) referred from the ower_id field - yes, I looked in the DB-structure. In this case the author will allways be the one that has written the article.

So, how to get the data from the table ezuser where the email-adress is stored?

\atle\
--

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 05:23:05
Script start
Timing: Jan 18 2025 05:23:05
Module start 'layout'
Timing: Jan 18 2025 05:23:05
Module start 'content'
Timing: Jan 18 2025 05:23:06
Module end 'content'
Timing: Jan 18 2025 05:23:06
Script end

Main resources:

Total runtime1.0827 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0547152.6250
Module start 'layout' 0.00610.0038 741.679739.4453
Module start 'content' 0.00991.0710 781.1250400.1797
Module end 'content' 1.08080.0018 1,181.30478.1641
Script end 1.0827  1,189.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3212160.0002
Check MTime0.00140.1307160.0001
Mysql Total
Database connection0.00090.083710.0009
Mysqli_queries1.043096.3334460.0227
Looping result0.00060.0559440.0000
Template Total1.040996.120.5205
Template load0.00220.199020.0011
Template processing1.038895.940120.5194
Template load and register function0.00020.017110.0002
states
state_id_array0.00120.111110.0012
state_identifier_array0.00320.294520.0016
Override
Cache load0.00180.161780.0002
Sytem overhead
Fetch class attribute can translate value0.00120.107110.0012
Fetch class attribute name0.00090.079810.0009
XML
Image XML parsing0.00010.010310.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.0664100.0001
String conversion0.00000.000840.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs