Hello,
i use the PaginationList from Lesson 15 for a DataList "ArtikelObject". Everythink works fine, but my PaginationList show me now all 226 Pages in the Pager. I would have something like this:
<< 1 .... 6 7 8(Current) 9 10 .... 226 >>
2 Links before Current und 2 Links after Current.
Can I prepare the Links in php or it is possible make this in Template?
My Php Function:
public function getArtikel(SS_HTTPRequest $request) {
$start= 0;
if (isset($_GET['start'])) {
$start = $_GET['start'];
}
$request = array();
$list = ArtikelObject::get()->filter(array('ArticleHolderID' => $this->ID, 'Zustand' => '2'));
$pages = new PaginatedList($list, $request);
$pages->setPageLength(10)->setPageStart($start);
return $pages;
}
Please help,
Greatings Barbara