Number Of Link To Display At A Time In Cpagination

Hi,

I am using CPagination class and i want to set no of page link to be displayed in the link section.i.e.

if i have 100 page to display i want to show only 10 links at a time like google.

I also need to mention that i am using CLinkPager widget in view

What have you tried so far?


    $pages=new CPagination($count);


    // results per page

    $pages->pageSize=10;

    $pages->currentPage=3;

Sujoy is asking about changing the display of page links at the bottom of the page as far as I understand, not the number of items displayed on each page.

hmm, yeah it was hard for me to understand but then i guess it would be


$this->widget('CLinkPager', array(

    'pages' => $pages,

    'maxButtonCount' => 10, 

));

but the 10 is already default.