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.

eZ debug

Timing: Jan 19 2025 04:24:53
Script start
Timing: Jan 19 2025 04:24:53
Module start 'layout'
Timing: Jan 19 2025 04:24:53
Module start 'content'
Timing: Jan 19 2025 04:24:54
Module end 'content'
Timing: Jan 19 2025 04:24:54
Script end

Main resources:

Total runtime0.8000 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.0053 589.1563152.6250
Module start 'layout' 0.00530.0042 741.781339.4453
Module start 'content' 0.00950.7890 781.2266496.9297
Module end 'content' 0.79850.0014 1,278.15638.1641
Script end 0.7999  1,286.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3859160.0002
Check MTime0.00130.1606160.0001
Mysql Total
Database connection0.00100.122910.0010
Mysqli_queries0.752794.0958570.0132
Looping result0.00060.0711550.0000
Template Total0.764895.620.3824
Template load0.00200.246320.0010
Template processing0.762895.353620.3814
Template load and register function0.00040.045510.0004
states
state_id_array0.00130.158010.0013
state_identifier_array0.00130.161820.0006
Override
Cache load0.00160.1986250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075120.0003
Fetch class attribute name0.00190.242530.0006
XML
Image XML parsing0.00020.029620.0001
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00160.2002100.0002
String conversion0.00000.001140.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs