There seems to be a default limit to for
loops in craft of 100
.
I have a channel with quite a few entries.
How can I disable this without writing nasty things like .limit(100000000)
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityThere seems to be a default limit to for
loops in craft of 100
.
I have a channel with quite a few entries.
How can I disable this without writing nasty things like .limit(100000000)
Set the limit to null limit(null)
.
limit
to null
is not necessary unless trying to override a previously set value. Source: github.com/craftcms/cms/blob/develop/…
– Ben Croker
Jul 21 '20 at 17:58
There very definitely is a default limit of 100 and using .limit(null) will definitely override it. I know this because I recently had the same issue myself!
.limit(null)
work? – joep Apr 1 '16 at 10:43