How to access attributes in an related object

Author Message

Haroon Azizpour

Friday 21 November 2003 10:46:40 am

Hi
I hope this question wasn't asked and solved already, I've looked throught the forum and didn't find it..

I have created two custom classes. The first one has an attribute of type "Object Relation" (called info) that points to the second custom class.
In the full view for the first custom class, I would like to display some attributes of the second class, too. How do I do it?
If I access normal attributes of the first class like this e.g.:
{attribute_view_gui attribute=$node.object.data_map.title}

Do I have to access attributes of the second class like this?
{attribute_view_gui attribute=$node.object.data_map.info.title}

Thanks in advance for your help.

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 18 2025 19:05:30
Script start
Timing: Jan 18 2025 19:05:30
Module start 'layout'
Timing: Jan 18 2025 19:05:30
Module start 'content'
Timing: Jan 18 2025 19:05:31
Module end 'content'
Timing: Jan 18 2025 19:05:31
Script end

Main resources:

Total runtime0.5911 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0391152.6406
Module start 'layout' 0.00680.0037 740.679739.4766
Module start 'content' 0.01050.5787 780.1563402.5000
Module end 'content' 0.58920.0019 1,182.65638.2813
Script end 0.5910  1,190.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6382160.0002
Check MTime0.00140.2337160.0001
Mysql Total
Database connection0.00100.175310.0010
Mysqli_queries0.546592.4487460.0119
Looping result0.00050.0777440.0000
Template Total0.548092.720.2740
Template load0.00220.374720.0011
Template processing0.545792.324920.2729
Template load and register function0.00020.033210.0002
states
state_id_array0.00340.569610.0034
state_identifier_array0.00180.312220.0009
Override
Cache load0.00180.3083120.0002
Sytem overhead
Fetch class attribute can translate value0.00380.646310.0038
Fetch class attribute name0.00130.218110.0013
XML
Image XML parsing0.00010.021810.0001
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00210.3595100.0002
String conversion0.00000.001940.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs