Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Pagination in INVO does not link to last page


I am playing with the latest INVO and found a funny behavior. When I have like 10 product types and change the paginator-limit to 2 or so in the controller, then I can use the PREVIOUS and NEXT buttons to jump through the pages. But the very last page is not accessable with the NEXT button. There I have to use the LAST button.

Is there a fix available?

edited May '14

Well, here's my dirty hack.

In the view, change

<?php echo Tag::linkTo(array("products/index?page=".$page->next, '<i class="icon-step-forward"></i> Next', "class" => "btn")) ?>


<?php $next = $page->current + 1; if($next > $page->total_pages){ $next = $page->current; } ?>

<?php echo Tag::linkTo(array("products/index?page=".$next, '<i class="icon-step-forward"></i> Next', "class" => "btn")) ?>