Forums / General / How to access attributes in an related object

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.