Tuesday 23 January 2007 2:43:05 am
I have created a content class with a "Object relation" datatype. Now in the template I want to link to the related object, and I don't get it. My code is following:
{def $header=fetch( content, list, hash( 'parent_node_id', 399, class_filter_type, "include", class_filter_array, array(23), limit, 5, 'sort_by', array( 'priority', true() ) ) ) }
{foreach $header as $item}
<div class="imageElement">
<h3>{$item.name|wash()}</h3>
<p>{$item.object.data_map.intro.content}</p>
<a href=?????? title="{$item.object.data_map.intro.content}" class="open"></a>
<img src="{$item.object.data_map.image.content.data_map.image.content[header].full_path}" alt="{$item.name|wash()}" title="{$item.name|wash()}" class="full" />
</div>
{/foreach}
{undef $header}
So my question is how to code this line to link the image to the related object.
<a href=?????? title="{$item.object.data_map.intro.content}" class="open"></a>
eZ Partner in Madrid (Spain)
Web: http://www.atela.net/
|