Forums / Developer / Access to class attributs

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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?