Pagination disappears when you go to the last page #165
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#165
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
##I added 6 items and set the view to display 5 at a time and It looks like the pagination is set for > 4 but when I'm on the second page the array has only 1 item so it doesn't display the pagination and I have no way to go back to page 1:
Page 1
Page 2
In the code generated
Replacing:
count($this->items) > 4
With
$this->pagination->pagesTotal > 1
Fixes it.
Okay, thanks 👍 I will add that to the next release.
You can update your compiler in
/admin/helpers/compiler/e_Interpretation.php
on line 3542 with the following.I already added this also to the core... but will not push an update soon.
Thanks
I found another issue with this fix I think we need to set
$this->pagination->pagesTotal > 0
because the code that displays the pagination includes the code that display the$this->pagination->getLimitBox()
so once I set it to display all the limit box disappears.I guess the other option would be to move the getLimitBox call outside of the pagination call.
This is not ideal... the limit box is not easy to move around (since it is also dynamically movable). Let me take a closer look.. I did not investigate your fix close enough it seems.
I will get back to this a little later.