Google Navigator on reverse related objects

Author Message

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}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:28:12
Script start
Timing: Jan 18 2025 22:28:12
Module start 'layout'
Timing: Jan 18 2025 22:28:12
Module start 'content'
Timing: Jan 18 2025 22:28:13
Module end 'content'
Timing: Jan 18 2025 22:28:13
Script end

Main resources:

Total runtime1.2080 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0469152.6406
Module start 'layout' 0.00470.0026 740.687539.4766
Module start 'content' 0.00731.1993 780.1641441.8906
Module end 'content' 1.20660.0013 1,222.05478.1250
Script end 1.2080  1,230.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2456160.0002
Check MTime0.00120.0996160.0001
Mysql Total
Database connection0.00080.065310.0008
Mysqli_queries1.160696.0753460.0252
Looping result0.00050.0408440.0000
Template Total1.169096.820.5845
Template load0.00190.155020.0009
Template processing1.167196.616720.5836
Template load and register function0.00010.007910.0001
states
state_id_array0.00190.159810.0019
state_identifier_array0.00100.083320.0005
Override
Cache load0.00150.126290.0002
Sytem overhead
Fetch class attribute can translate value0.00050.037810.0005
Fetch class attribute name0.00060.049620.0003
XML
Image XML parsing0.00070.056110.0007
class_abstraction
Instantiating content class attribute0.00000.000220.0000
General
dbfile0.00090.0715160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs