Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Pagination of Children?

$
0
0

Pagination for dataobjects as you've seen will still work for pages. Have a read of the documentation online for more reference - http://doc.silverstripe.org/framework/en/howto/pagination

In your case if you want to paginate the children then create a new function on your StoryHolder

public function PaginatedChildren() {
return new PaginatedList($this->Children(), $this->request);
}

Then you can use PaginateChildren as your paginated list. More documentation on that doc page.


Posted to: Pagination of Children? | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles