Access to class attributs

Author Message

Bermudez Alban

Friday 16 December 2005 7:38:05 am

Hello world,

I create a attribut "auteur" in my class file. But i don't know how access to this.

My Object is
Name: File
Identifiant: file
Modèle de nom d'objet: <name>
Container: Non
Object count: 4

and his Attributs are :
4. Auteur [Authors] (id:181)
Nom: Auteur
Identifiant: auteur_du_fichier

I try that :
$Subitem.object.data_map.auteur.content
But it's not that. Have you idea?

ps : I'm french, so escuse me for my english very poor :))

Gabriel Ambuehl

Friday 16 December 2005 7:43:34 am

You need to use the identifier not the name in template code.

Visit http://triligon.org

Bermudez Alban

Friday 16 December 2005 7:53:08 am

Thanks :)

But now, it is the description of the object who is printing (Object(ezauthor)). How i can to print the value of the object?

I must to call the attributs of the object ezauthor?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.