Skip to content

limit="" and paginate="" are inconsistent #10407

Discussion options

You must be logged in to vote

@pmeissner In fact, when you use paginate int, we don't even process the limit 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...

{{ if get:page > 4 }}
    {{ 404 }}
    // or
    {{ redirect to="/articles/archive" }}
{{ /if }}

{{ collection:articles paginate="50" }}
   ...
{{ /collection:articles }}

And then on your archived entries page, utilize offset by itself to skip the first 4 pages / 200 entries...

{{ collection:articles offset="200" }}
   ...
{{ /collection:articles }}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jasonvarga
Comment options

@jesseleite
Comment options

Answer selected by pmeissner
@pmeissner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants