Wednesday 09 November 2005 5:29:08 am
I have read much on the forums regarding related objects and I'm still having trouble understanding how to output related objects. I have an article-type class which can have image objects related to it. I would like to display the related objects at the bottom of each article. I don't want to embed the images in the article text, just simply loop thru them and display them at the end of the article. I have successfully accessed the related objects and can loop the array. I get the name of each object but cannot display the image. My code is:
{let vRelatedObjects=$node.object.related_contentobject_array}
{foreach $vRelatedObjects as $vMyObject}
name is: {$vMyObject.data_map.name.value}
image is: {content_view_gui content_object=$vMyObject.data_map.image}
{/foreach} {/let} Why doesn't the above display my image? Regards, Jason
|