Number of results in google navigator

Author Message

Philip K.

Monday 24 October 2005 7:22:01 am

Hi.

I tried to modify my google navigator because I want the navigator to show me the current result number and the number of maximum results. It should look like

< 1 2 3 4 5 6 7 >
Current Page: 2 / 7 (<- this is my problem)

I wrote this line of code in my tpl:
{$:current_page} / {$:page_count}

But the navigator starts with a "0", so that
<b>0 / 7</b> (the max results are OK...) is displayed...

What must I do for getting a "1" instead of a "0" ??

I hope you understood my problem... :)

Thanks for your help...

Linux is like a wigwam; no windows, now gates, and apache inside!

Kristof Coomans

Monday 24 October 2005 9:54:12 am

{$:current_page|inc} / {$:page_count}

See http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/mathematics/inc

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Philip K.

Tuesday 25 October 2005 12:12:36 am

Thank you for your fast answer - it works :)

Linux is like a wigwam; no windows, now gates, and apache inside!

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:40:25
Script start
Timing: Jan 18 2025 22:40:25
Module start 'layout'
Timing: Jan 18 2025 22:40:25
Module start 'content'
Timing: Jan 18 2025 22:40:25
Module end 'content'
Timing: Jan 18 2025 22:40:25
Script end

Main resources:

Total runtime0.6668 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.9297152.6250
Module start 'layout' 0.00680.0032 740.554739.4453
Module start 'content' 0.00990.6552 780.0000541.3047
Module end 'content' 0.66520.0016 1,321.304712.1563
Script end 0.6668  1,333.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4645160.0002
Check MTime0.00120.1813160.0001
Mysql Total
Database connection0.00070.110410.0007
Mysqli_queries0.619592.8972570.0109
Looping result0.00040.0656550.0000
Template Total0.634895.220.3174
Template load0.00200.303420.0010
Template processing0.632894.891420.3164
Template load and register function0.00010.012410.0001
states
state_id_array0.00070.107210.0007
state_identifier_array0.00110.159920.0005
Override
Cache load0.00170.2496220.0001
Sytem overhead
Fetch class attribute can translate value0.00090.128820.0004
Fetch class attribute name0.00100.148650.0002
XML
Image XML parsing0.00090.131720.0004
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00090.1415220.0000
String conversion0.00000.001540.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs