Share » Forums » Developer » Fetching Object Relations

Fetching Object Relations

Fetching Object Relations

Tuesday 29 June 2010 2:29:11 am - 3 replies

Author Message

Ivo Lukac

Wednesday 30 June 2010 2:35:08 am

Use something like this. Writing from my memory, so check syntax :)

{def $relnode}
{foreach $node.data_map.masthead_images.content.relation_list as $rel}
 {set $relnode = fetch(content, node, hash(node_id, $rel.node_id))}
 <img src="{$relnode.data_map.image.content[original].full_path|ezroot}"/>
{/foreach}
{undef $relnode}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Sandeep Kadam

Wednesday 30 June 2010 4:12:19 am

HI Ivo Lukac,

Thank you very much this realy is the code which i required. And I got it done.
Thanks..........Cheerssssss :)

Sandeep

Simon Boyer

Wednesday 13 July 2011 8:02:12 am

Hi,

I added an extension to do this :

http://projects.ez.no/oworfilter

This extension provides an extended attribute filter to fetch by object relation(s).

--
Developer at Open Wide

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu