Avatar of DJ_AM_Juicebox

asked on 

Doing a simple page listing of search results


Does any one have a generic bit of code that will create a list of page # results a user can move between, similar to how google/youtube list pages of search results? Something like:

1) User comes to page for first time
2) Previous view # not set, see how many widget records i have in database table
3) I want to like 20 widgets per page, and have 60 widget records, so I list:
4)  Page:  1 2 3
5) Each of the above is a clickable link to just refresh the page with the next batch of widgets
6) I want to show max 10 pages, then as the user clicks towards the end of the current page listing, they all shift over to reveal more page links.


Avatar of undefined
Last Comment
Emad Gawai

8/22/2022 - Mon