Hello!
Is there a way to make the CLinkPager to show "< previous 1 2 3 ... 19 20 21 next >" instead of "< previous 1 2 3 4 5 6 7 8 9 10 next >" ? have been searching alot but can't really find anything for it :/
Page 1 of 1
CLinkPager links
#2
Posted 22 May 2012 - 09:52 AM
maybe you have to extend the CLinkPager . read the source and you can override the method createPageButtons
#3
Posted 22 May 2012 - 11:03 AM
Do I have to override the createPageButtons function? Isn't there anything like an option in htmlOptions?
#4
Posted 22 May 2012 - 11:38 AM
I think yiqing95 is right. You need to create your own class, extend CLinkPager and override createPageButton. Don't think you can achieve that any other way
EDIT:
Just realized I pretty much repeated what yiqing95 lol
EDIT:
Just realized I pretty much repeated what yiqing95 lol
#5
Posted 11 July 2012 - 03:03 AM
If you mean count of Link pages show in pagination, you can set maxButtonCount in CLinkPager like :
$this->widget('CLinkPager', array(
'pages' => $pages,
'maxButtonCount' => 21,
));
Share this topic:
Page 1 of 1

Help













