Is it possible to use "limit" on nav / collection without pagination? #4810
Replies: 2 comments
-
OMG I THINK I KNOW WHAT WENT WRONG I've always been using collection:products | limit:5 But all the while.. it's totally different, it should have been collection:products limit="5" Hmph.. weirdly it works when in that format.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Combine limit=“5” with offset=“5” to get the _next_ chunk, and so on.
… On Nov 24, 2021, at 1:03 AM, niloc7 ***@***.***> wrote:
OMG I THINK I KNOW WHAT WENT WRONG
I've always been using collection:products | limit:5
But all the while.. it's totally different, it should have been collection:products limit="5"
Hmph.. weirdly it works when in that format..
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
niloc7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After experimenting a hundred ways... I think that "limit" can only be used in pagination or metadata..
I have a collection, ie. "products", and I want to get the first 5 to become links, and then next 5 to be used somewhere else.. just more customized navigation, instead of having to be stuck with the default pagination..
But limit doesn't work, and there doesn't seem to be a "from x to x" to select first to fifth slug etc..
Hmm.. am I missing something here or is this just how Statamic works for now?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions