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