Friday 20 April 2007 12:11:54 pm
Hi, I've just started using eZ publish (latest version) and am having trouble displaying images that I'm retrieving from a custom class. It seems like it should be such a simple thing to do but I haven't been able to find a solution anywhere. Here's my code:
{def $winners=fetch( 'content', 'tree',
hash( 'parent_node_id', 82, 'attribute_filter', $search_array ) )}
{foreach $winners as $w}
{* display selection id *}
{$w.object.contentobject_attributes[2].content[0]}
{* display image....? Line below outputs "Object(ezimagealiashandler)" *}
{$w.object.contentobject_attributes[6].content} {/foreach} The code is retrieving my custom objects just fine but after searching for everything i can think of I still can't figure out how to display the image properly. Even the code to display a selection id seems unnecessarily complicated...surely there's an easier way to access an attribute (by name) ? Would greatly appreciate any help anyone could give me. Cheers, Mike
|