Forums / Developer / How to read author name in template ?
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
Monday 12 May 2003 4:43:49 am
Thank you for your response...
I already tried it and it's work :)