|
David Jones
|
Thursday 19 October 2006 2:39:14 am
Comment46827
Hi Claudia, Sorry, I've only jsut got back to this one. I seem to have problems with everything I touch in ezp. It's safe to say I'm less than a fan *smile* Anyway, I'm sorry, I don't quite understand what it is you think I should try to do. Below is the code for the relevant part of the page
{def $offset=0
$limit=2}
{if is_set($view_parameters.offset)}
{set $offset=$view_parameters.offset}
{/if}
{def $meny=fetch('content','list',
hash( 'parent_node_id', $module_result.node_id,
'limit', $limit,
'offset', $offset ))}
{def $meny_count=fetch('content','list_count',
hash( 'parent_node_id', $module_result.node_id ))}
<div id="col2List">
<h3>Other Stories</h3>
<ul>
{def $inner_related_other_image=''}
{foreach $meny as $element}
<li>
{set $inner_related_other_image = fetch('content','related_objects',hash('object_id',$element.object.id,'all_relations', true()))}
{foreach $inner_related_other_image as $inner_related_other}
<a href={$element.url_alias|ezurl()}><img src={$inner_related_other.data_map.image.content.original.full_path|ezroot} alt="image1" border="0" /></a>
{/foreach}
<div id="col2ListIndent">
<span class="title"><a href={$element.url_alias|ezurl()}>{attribute_view_gui attribute=$element.object.data_map.title}</a></span><br/>
<span class="date">{attribute_view_gui attribute=$element.object.data_map.date} </span>
<span class="desc">{attribute_view_gui attribute=$element.object.data_map.excerpt}</span></div>
</li>
{/foreach}
</ul>
</div><!--end of news list-->
<!-- Record set navigation bottom start -->
{include uri="design:navigator/google.tpl"
page_uri=$pagelayout_node.url_alias
item_count=$meny_count
view_parameters=$view_parameters
item_limit=$limit}
Should all of this go into a template? And then just include it like the google.tpl is included above?
|