Skip to the content
Documentation

content access didn't word that way

No ratings yet

Tried accessing the ".content" of an ezcontentobjectattribute object in a design template, but it wasn't an array of ezcontentobjectattribute objects. Looking in other templates the best I figured out for now is that the following will allow me to iterate of the objects of an ezobjecrelationtlist:
{foreach $myezattr.content.relation_list as $relation}
{def $obj=fetch('content', 'object',
hash('object_id', $relation.contentobject_id))}
...
{undef $obj}
{/foreach}
Wondering if there's some fundamental thing I haven't understood here though...