- Issue created by @erwangel
- ๐ฎ๐ณIndia dev2.addweb
nilesh.addweb โ made their first commit to this issueโs fork.
- Status changed to Needs review
2 months ago 11:40am 16 September 2024 - ๐ซ๐ทFrance erwangel
I applied the MR. [view:current-page] seems to be correct now. [view:page-count] gives inconsistent results.
- On a view with a total of two pages, it gives (mini pager)
It looks like there is a relation between the items/page setting and the displayed 'page-count'
[items per page 16]
first page 1/17 (1 + 16 ?)
second page 2 /26 (16+9 ?)
[items per page 10]
1st page: 1/11 (1 + 10)
2nd page: 2/21 (11+10)- On another view with a total of 4 pages, it displays (full pager)
1st page: 1/2
2nd page: 2/3
3rd page: 3/4
and so on- Same as previous with another view with 576 page (same behavior with full and mini pager)
1/2, 2/3, 3/4, ..., 574/575, 575/576 - ๐ซ๐ทFrance erwangel
Sorry, in the above 1st case it was my fault, I had [view:total-rows] instead of [view:page-count]. So the problem is that [view:page-count] displays [view:current-page] + 1 instead of the 'The total page count'.
Other info that may be of interest: if I use Header > Global > Result summary tokens "@current_page -- the current page number" and "@page_count -- the total page count", they display correctly.