Forums / Setup & design / Accessing the offset to count search results

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.