Object relations Datatype

Author Message

Sirvash Sharma

Friday 14 April 2006 7:30:27 am

Hi
I have created two classes. 1- course 2- subject. and for relation between two classes.
I am using the object relations datatype for identifier(subject). I wanna fetch the all subject name in course but whenever use this code.

{$node|attribute(show)}

No attribute shows. i have try more code but there is no value display about Attribute, type etc.Ex.

{$node.data_map.subject|attribute(show)}
{$node.data_map.subject.content|wash()}


Please suggest me about this problem.
Thanks & Regards

 

Eirik Alfstad Johansen

Monday 01 May 2006 10:37:00 pm

Hi Sirvash,

In which template are you placing this example code?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 21 2025 00:39:45
Script start
Timing: Jan 21 2025 00:39:45
Module start 'layout'
Timing: Jan 21 2025 00:39:45
Module start 'content'
Timing: Jan 21 2025 00:39:45
Module end 'content'
Timing: Jan 21 2025 00:39:45
Script end

Main resources:

Total runtime0.0180 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141151.2109
Module start 'layout' 0.00560.0043 739.125036.6484
Module start 'content' 0.00980.0067 775.773490.1406
Module end 'content' 0.01660.0014 865.914129.9922
Script end 0.0180  895.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.4910140.0002
Check MTime0.00137.0010140.0001
Mysql Total
Database connection0.00084.185810.0008
Mysqli_queries0.003820.876030.0013
Looping result0.00000.126910.0000
Template Total0.00115.910.0011
Template load0.00084.701210.0008
Template processing0.00021.225210.0002
Override
Cache load0.00063.210410.0006
General
dbfile0.00137.311680.0002
String conversion0.00000.054240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs