This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » How to read author name in template ?
expandshrink

How to read author name in template ?

How to read author name in template ?

Friday 09 May 2003 1:54:57 pm - 2 replies

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....

Monday 12 May 2003 8:02:13 am

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

Monday 12 May 2003 1:43:49 pm

Thank you for your response...

I already tried it and it's work happy.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from