Mohammad Tufail
|
Tuesday 14 October 2008 7:40:17 am
Hi, I have a template in which i m fetching reverse related objects. I want to apply google navigator on these objects but confused what should be the node_id page_uri of the navigator. I have tried the $node.node_id but it does not work. The code is given below.
{def $limit=2}
{def $references=fetch('content','reverse_related_objects', hash('object_id',$node.contentobject_id, 'attribute_identifier',242, limit, $limit, offset, $view_parameters.offset ))}
{def $count=count($references) }
<div class="area-main-full">
<a name="references"></a>
<div class="attribute-heading">
<h1>{attribute_view_gui attribute=$node.object.data_map.name} references ({$count})</h1>
</div>
<table class="list nohighlight" cellspacing="0">
<tr valign="top">
<th width="1%">Screenshot</th>
<th width="12%">Country</th>
<th>Description</th>
</tr>
{section var=ref loop=$references sequence=array( bglight, bgdark )}
<tr class="{$ref.sequence}" valign="top">
<td valign=middle>
<div class="attribute-image">
<a href=#>{attribute_view_gui attribute=$ref.current.data_map.logo}</a>
</div>
</td>
<td>
{attribute_view_gui attribute=$ref.current.data_map.country}
</td>
<td>
<div class="attribute-short">{attribute_view_gui attribute=$ref.current.data_map.description}</div>
</td>
</tr>
{/section}
</table>
{include name=navigator uri='design:navigator/google.tpl'
page_uri=concat('/content/view/full/', $node.node_id,'/')
item_count=$count
view_parameters=$view_parameters
item_limit=$limit}
|