Answers.Body: <p>Element queries in Craft 2.x has a default limit of 100 (from Craft 3 and onwards, there is no default limit).</p>
  <p>To change the default limit in Craft 2, you can pass the desired limit via the <code>.limit()</code> param. To remove the limit entirely, you can pass <code>null</code>:</p>
  <pre><code>{% for image in craft.assets.kind('image').folderId('72').order('filename').limit(null) %}
  ...
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T21:09:22.857Z
Answers.Text: Thanks!  I was wondering if it was a default, as I hadn't run up against the limit before.
Answers.UserDisplayName: buck1112
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T21:01:08.087Z
Answers.LastActivityDate: 2022-07-19T21:01:08.087Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <p>In Craft 2, I am looping through Image Assets, but the loop stops after 100 images.<br />
  I currently have around 140 images, but only the first 100 appear.
  Is this a built in limit in Craft 2?</p>
  <p>Thanks</p>
  <pre><code> {% for image in craft.assets.kind('image').folderId('72').order('filename') %}
  
   {{ image.title }}
  
   {% endfor %}
  </code></pre>
  
Tags: <assets><image><craft2><loop>
Title: Craft 2 Looping Through Assets Limit 100
ThreadText: # Craft 2 Looping Through Assets Limit 100
  
  (Asked by: username_0 on 2022-07-19)
  
  In Craft 2, I am looping through Image Assets, but the loop stops after 100 images.  
  I currently have around 140 images, but only the first 100 appear.
  Is this a built in limit in Craft 2?
  
  Thanks
  
  ```
   {% for image in craft.assets.kind('image').folderId('72').order('filename') %}
  
   {{ image.title }}
  
   {% endfor %}
  
  ```
  
  **Tags:** assets, image, craft2, loop
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-07-19. Score: 2 | Accepted answer
  
  Element queries in Craft 2.x has a default limit of 100 (from Craft 3 and onwards, there is no default limit).
  
  To change the default limit in Craft 2, you can pass the desired limit via the `.limit()` param. To remove the limit entirely, you can pass `null`:
  
  ```
  {% for image in craft.assets.kind('image').folderId('72').order('filename').limit(null) %}
  ...
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks!  I was wondering if it was a default, as I hadn't run up against the limit before.  
  
  ---
  
  