Relations between two classes

Author Message

Sirvash Sharma

Friday 21 April 2006 6:38:39 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

Xavier Dutoit

Sunday 23 April 2006 10:05:49 am

Hi,

Have a look at the enhanced object relation, it explains how to do that:

http://ez.no/community/contribs/datatypes/enhanced_objectrelation

X+

http://www.sydesy.com

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 01:15:00
Script start
Timing: Jan 19 2025 01:15:00
Module start 'layout'
Timing: Jan 19 2025 01:15:00
Module start 'content'
Timing: Jan 19 2025 01:15:00
Module end 'content'
Timing: Jan 19 2025 01:15:00
Script end

Main resources:

Total runtime0.0276 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.0050 590.2734152.6250
Module start 'layout' 0.00510.0035 742.898439.4453
Module start 'content' 0.00860.0148 782.343889.3203
Module end 'content' 0.02340.0042 871.664130.3047
Script end 0.0276  901.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003211.4931140.0002
Check MTime0.00114.0749140.0001
Mysql Total
Database connection0.00082.836310.0008
Mysqli_queries0.00289.973830.0009
Looping result0.00000.050110.0000
Template Total0.003713.610.0037
Template load0.002910.646610.0029
Template processing0.00082.912310.0008
Override
Cache load0.00259.078210.0025
General
dbfile0.00248.839880.0003
String conversion0.00000.020740.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