![]() |
MY_Pagination ie(1,2,3,7,8,9,20,21,22) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: MY_Pagination ie(1,2,3,7,8,9,20,21,22) (/showthread.php?tid=55838) |
MY_Pagination ie(1,2,3,7,8,9,20,21,22) - El Forum - 11-12-2012 [eluser]srpurdy[/eluser] Hi, This hasn't been fully tested yet, but this should give you the ability to have pagination with links like this example [1][2][3] [7][8][9] [20][21][22] You can also customize the the amount of links on each end with new variables show_first_int show_last_int example usage Code: $config['show_first_int'] = '3'; Library below which extends ci's pagination class. File Attached. If you find bugs let me know. ![]() MY_Pagination ie(1,2,3,7,8,9,20,21,22) - El Forum - 11-12-2012 [eluser]Mirge[/eluser] You should put this on github so people can contribute! ![]() MY_Pagination ie(1,2,3,7,8,9,20,21,22) - El Forum - 11-12-2012 [eluser]srpurdy[/eluser] Good idea ![]() https://github.com/srpurdy/CI_Pagination_Extended MY_Pagination ie(1,2,3,7,8,9,20,21,22) - El Forum - 11-14-2012 [eluser]srpurdy[/eluser] Updated on github with gaps in each group of pages so you can have something like [1][2][3]...[7][8][9]...[20][21][22] |