EllisLab text mark
Advanced Search
     
MY_Pagination ie(1,2,3,7,8,9,20,21,22)
Posted: 12 November 2012 03:16 PM   [ Ignore ]
Joined: 2007-12-30
166 posts

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

$config['show_first_int''3';
$config['show_last_int''3'

Library below which extends ci’s pagination class.

File Attached. If you find bugs let me know. smile

 
Posted: 12 November 2012 03:42 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-04-13
256 posts

You should put this on github so people can contribute! smile

 Signature 

Expert Web Development Backed by LIFETIME Guarantee
CI-Foundation v1
InfinityTracker - Project Management

 
Posted: 12 November 2012 04:02 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-12-30
166 posts

Good idea smile

https://github.com/srpurdy/CI_Pagination_Extended

 
Posted: 14 November 2012 09:21 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2007-12-30
166 posts

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]