/** * Returns a paginated list of all pages in the site. */ public function PaginatedStories() { $list = Story::get(); return new PaginatedList($list, $this->getRequest()); }
public function AuthorStories() { $stories = Story::get()->sort('Created DESC')->sort('Added DESC'); return $stories; }
public function LimitChildren($Limit) { $storyLimited = Story::get()->sort('Created DESC')->sort('Added DESC')->limit($Limit); return $storyLimited; }