Hi, I'm using PaginatedList on one of my functions, and it's working fine - limiting the display of the results - but when I try to view the "NextLink" it just displays the same list again (starting with the first result). The URL changes eg. ?start=12 is added but the results don't change.
Am I missing something?
My Function (working):
public function PaginatedWork() {
$paginatedList = new PaginatedList(DataObject::get("WorkPage", "", "", "", ""));
$paginatedList->setPageLength(12);
return $paginatedList;
}
On the template <% loop $PaginatedWork %> is working (showing just the first 12 results)
But the link to view the next Page isn't working:
<% if $PaginatedWork.NotLastPage %><a class="next" href="$PaginatedWork.NextLink">></a><% end_if %>
URL updates with ?start=12 but the items displayed don't change
Any ideas??