Answer the question
In order to leave comments, you need to log in
Positioning content in reverse pagination
Good evening.
There is a site with articles. As expected pagination of the list of articles. But the list is paginated in reverse order. Those. the oldest articles on the first page, and the newest ones on the last.
This approach is very convenient because the material located, say, on the tenth page will always remain there.
But there is one catch: how to give out the last page of content that is not completely filled out. For example: there are 103 entries, 10 per page. It turns out that 3 records hang out by themselves.
I know several ways to solve this issue, but all of them are not very convenient:
1. Show only these three entries on the last page. Doesn't fit, because it's "unusable" or something. It turns out on different pages a different number of records.
2. On the penultimate page, show its records + the rest. This option is also not very suitable. with a balance of 9 articles, there will be as many as 19 entries on the page - and this is a lot. Again uncomfortable.
3. On the last page, show the last 10 records, and on the penultimate page - according to the usual algorithm. In this case, some entries will be duplicated on the last and penultimate pages.
For clarity, you can consider the example above: on the last page there will be articles 103-94, and on the penultimate page 100-91. It turns out articles 100-94 are shown on two pages.
At the moment, the site uses the third method. But not very convenient. With a small balance, the user may be confused by the "same" issue on the next page.
And now I'm confused, I don't know how to solve this problem. I see the only way out - when switching from the last page to the penultimate one, use js to rewind the page to new articles. But this is more of a crutch than a solution.
Please tell me how to solve this problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question