Last active
August 29, 2015 14:03
-
-
Save kn9ts/5add3925178e535da6fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function PaginatedPages() { | |
$blogHolderId = $this->ID; | |
$list = BlogEntry::get()->filter(array("ParentID" => "{$blogHolderId}"))->sort('Date DESC'); | |
$paginatedItems = new PaginatedList($list, $this->request); | |
$paginatedItems->setPageLength(4); | |
return $paginatedItems; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment