Tuesday 13 April 2004 7:45:02 pm
Hi Roberta, I solved my own problem, and hopefully I've solved yours as well. I eventually found an attribute which works pretty much by trial and error, using the attribute(show) command to view them all. The object id of the related object is stored in the data_int attribute of the object relation field. This seems pretty counter-intuitive to me. Here's an example that should suit the situation you've described above, assuming the template is for the node that displays the 'container' object:
{let orario=fetch( 'content', 'object',
hash( 'object_id', $node.object.data_map.orario.data_int )
)
}
Name: {$node.object.data_map.name}
Description: {$node.object.data_map.description}
Day: {$orario.object.data_map.day}
Hour: {$orario.object.data_map.hour}
This can be used (modified) inside a loop or whereever you like - once you know that you can find the required value inside data_int, the rest is easy. I hope this helps, John Dalton
|