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.