Forums / Setup & design / Relations between two classes

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