Hello - I attempted to follow this tutorial on pagination. http://doc.silverstripe.org/framework/en/howto/pagination
I cant make it work the way I want. I dont know if I am doing something wrong or if I am misinterpreting how its supposed to be used...
This is in my page controller - I am limiting this to "Projects".
public function PaginatedProjects() {
$pagination = new PaginatedList(Page::get('Project'), $this->request);
return $pagination;
}
In my Project page template this works to return a list of projects
<% loop $PaginatedProjects %>
<li><a href="$Link">$Title</a></li>
<% end_loop %>
but none of the other methods seem to work.
TotalItems always returns 1
PrevLink, NextLink return blank
I really just want Prev, Next links. Is there a working example of pagination out there or a prev/next example that works with SS3?