Accessing the offset to count search results

Author Message

Barney Gumble

Saturday 31 January 2004 1:54:59 pm

My search is working fine, however I now want to add a count beside each found item, ie.

1. Homepage
2. Press Release
3. Press Release #2
etc. etc.

I can make the first page work fine with a simple counter variable, but my problem occurs on page 2 onwards as I can't seem to access the offset, i.e. page 2 should start with number 11 rather than another number 1. $view_parameters.offset - which at first looked promising - appears to be empty.

Any help will be greatly appreciated as always!

Barney Gumble

Saturday 31 January 2004 2:17:14 pm

Sorted this one already. It was necessary to add

view_parameters=$view_parameters

to the include which was calling the results.

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 21:15:42
Script start
Timing: Jan 18 2025 21:15:42
Module start 'layout'
Timing: Jan 18 2025 21:15:42
Module start 'content'
Timing: Jan 18 2025 21:15:43
Module end 'content'
Timing: Jan 18 2025 21:15:43
Script end

Main resources:

Total runtime0.7950 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0469152.6406
Module start 'layout' 0.00640.0057 740.687539.4766
Module start 'content' 0.01210.7812 780.1641423.4297
Module end 'content' 0.79330.0016 1,203.59388.1250
Script end 0.7950  1,211.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4308160.0002
Check MTime0.00150.1842160.0001
Mysql Total
Database connection0.00080.104310.0008
Mysqli_queries0.750794.4255520.0144
Looping result0.00070.0826500.0000
Template Total0.753394.820.3767
Template load0.00200.248520.0010
Template processing0.751394.503520.3757
Template load and register function0.00020.028910.0002
states
state_id_array0.00070.084310.0007
state_identifier_array0.00160.196620.0008
Override
Cache load0.00160.1991140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.071010.0006
Fetch class attribute name0.00150.189320.0008
XML
Image XML parsing0.00010.013710.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00110.1358100.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs