How to read author name in template ?

Author Message

Leo Unics

Friday 09 May 2003 4:54:57 am

Hello ...
I'm newbie in eZ publish ....
Anybody knows how to read author item like id, name and email address ?
I already try the following code, but it's not work...

{section name=Child loop=$children}
{section name=Author loop=$Child:item.data_map.author.content.author_list}
{$Author:item.id}: {$Author:item.name|wash}-{$Author:item.email|wash} <br>
{/section}
{/section}

Another thing...... in which table in database the content data of class attributes are recorded ?

Thank you....

Hans Melis

Sunday 11 May 2003 11:02:13 pm

I would try the following to access the different attributes:

{$:item.id}

or

{$Child:Author:item.id}

The Author namespace is inside the Child namespace. If you want to access a variable in the namespace, you have to specify the parent namespace(s). The $: in the first example refers to the current namespace, but I'm not sure if that operator also works in nested namespaces.

Hans

Hans
http://blog.hansmelis.be

Leo Unics

Monday 12 May 2003 4:43:49 am

Thank you for your response...

I already tried it and it's work :)

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

Main resources:

Total runtime0.6801 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9375152.6250
Module start 'layout' 0.00770.0041 740.562539.4453
Module start 'content' 0.01180.6668 780.0078529.3984
Module end 'content' 0.67860.0014 1,309.40638.1563
Script end 0.6801  1,317.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4758160.0002
Check MTime0.00130.1918160.0001
Mysql Total
Database connection0.00090.137910.0009
Mysqli_queries0.625091.8940570.0110
Looping result0.00060.0842550.0000
Template Total0.636893.620.3184
Template load0.00230.339220.0012
Template processing0.634493.277320.3172
Template load and register function0.00020.035410.0002
states
state_id_array0.00130.183810.0013
state_identifier_array0.00090.127420.0004
Override
Cache load0.00190.2796250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.106620.0004
Fetch class attribute name0.00150.223340.0004
XML
Image XML parsing0.00390.566520.0019
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00560.8245150.0004
String conversion0.00000.001440.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
3content/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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs