Friday 15 September 2006 12:33:46 pm
Hello David
I haven't worked much with related objects before so I cannot give you any direct help. ut But generally you can use the attribute function to find out more about an object.
So in your first foreach just use an
{$related_object|attribute('show', 1)} to get a table of the direct attributes of this object. (Increasing the number in the second argument will give you more information as it shows the attributes of each attribute as well, read the docu for this operator) Then you can access these attributes by calling $related_object.<name of the respective attribute>.
Using this approach you will most likely see that the object id you need is stored in $related_object.id. In fact an contenobject does not have any attribute content_info, this is only for the moduele_result variable (which you should have see in the debug info so please check there the next time first).
Another good idea to find out which attributes hold what type of data is to check the documentation. The docu for contentobjects is here http://ez.no/doc/ez_publish/technical_manual/3_8/reference/objects/ezcontentobject So at the end I assume that you just have to replace
$related_object.content_info.object_id
with
$related_object.id
If that does help you to solve your problem post again, then I will check properly how to do what you want. Greetings from Luxembourg Claudia
|