CodeIgniter Forums
Pagination Class - Go to page number - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Pagination Class - Go to page number (/showthread.php?tid=62198)



Pagination Class - Go to page number - repulsor - 06-18-2015

Hey folks,

Does CI have a default setup for having a feature like this? I mean, next to the pagination with page numbers and First and Last buttons, adding a text box with go to page number facility?

Instead of having the user browse through tens of pages to reach the page he is looking for, how about just having him enter the page number and go to that page?

Does CI have something for this prebuilt?


RE: Pagination Class - Go to page number - repulsor - 06-18-2015

Should I be using external Javascript/HTML to get this done or there is something prebuilt? I am talking about 'Jump to Page Number' option.


RE: Pagination Class - Go to page number - CroNiX - 06-18-2015

No the Pagination class doesn't have that functionality built-in. You can always extend it or add it in with JS.


RE: Pagination Class - Go to page number - repulsor - 06-18-2015

Is there any specific reason why that wasnt built in? Not that its hard to extend, but could have been built in.


RE: Pagination Class - Go to page number - CroNiX - 06-18-2015

Really don't know. You're the first I've seen request it so it may not a popular enough item to include. You can always issue a PR on github after you create it and see if they'll merge it.