limit="" and paginate="" are inconsistent #10407
-
Not sure if this is a bug or a feature request, but… USE CASE: I TRIED: The collection tag seems to always pull ALL of the entries when the paginate is set to "true" or has an int. The nature of the limit="" parameter changes when paginate is used. This seems wrong. Put another way… the collection tag should apply all of it's limit and filters FIRST to get the total results and THEN paginate them based on a paginate int. Maybe a bug fix that wouldn't break too much would be going forward when a paginate has an int the limit="" should be respected as the total results returned. But if paginate is set to TRUE, then the limit="" would be the number of entries on a page. Seems icky. Is there a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@pmeissner So, the
Think of |
Beta Was this translation helpful? Give feedback.
@pmeissner In fact, when you use
paginate
int, we don't even process thelimit
param (you can see the early return here).For your use case, where you want to show only first 4 pages and archive the rest, you could do something like this on your main entry listing...
And then on your archived entries page, utilize
offset
by itself to skip the first 4 pages / 200 entries...