Forum
Item Index search results page
Hi
im using "perch_item_index" to print out the number next to the search result on search results page i.e
1 - result one
2 - result 2
3 - result 3 and so on...
when there is another page of results and you click next the number resets so you dont get
11 - result 11
but instead you get:
1 - result 11
any ideas?
perch_item_index
is the index of the item as it goes through the template, so what you're seeing is the correct behaviour.ok so is there a way to view the search result number?
Thanks
I don't believe so, currently.
do you know any way it could be done?
perhaps using the "page" number in the querystring to add ten to the search index number? i.e. if page = 2 then add 10 if page = 3 then add 20
Cheers
Yes, that would work.