<p>By default Craft 2 will only return 100 elements (entries, assets, users, etc.) at a time.</p>

<p>If you want to get more than that, you need to use <code>limit(null)</code>.</p>

<pre><code>{% for channel in craft.entries.section('components').limit(null) %}
</code></pre>

<p>This behavior changed in Craft 3 so there is no default limit.</p>

CC BY-SA 4.0
2018-08-02T19:20:46.753Z
2018-08-02T19:55:12.933Z
2018-08-02T19:55:12.933Z
Brad Bell
<p>I am currently creating various component entries (under channels). Once created I can then add that specific component to structure (know on my site as a work page). </p>

<p>On the work page I have a dynamic field (see <a href="https://github.com/lewisjenkins/craft-dynamic-fields" rel="nofollow noreferrer">https://github.com/lewisjenkins/craft-dynamic-fields</a>) that allows a user to scroll through these already created component entries in a dropdown list style. That drop down is a dynamic dropdown generated through LJ dynamic fields with the following code in the CMS.</p>

<pre><code>{% include '_dynamicfields/sections' ignore missing %}
</code></pre>

<p>From there the included file is as follows...</p>

<pre><code>{% for channel in craft.entries.section('components') %}
   { "value":"{{ channel.id }}" , "label":"{{ channel | raw }}" }
   {% if not loop.last %},{% endif %}
{% endfor %}
</code></pre>

<p>Unfortunately as of late I'm only seeing the latest 100 entries. I haven't seen any reference in either craft CMS documentation or the LJ Dynamic fields documentation.</p>

CC BY-SA 4.0
2018-08-02T18:34:32.847Z
Is this Craft 2 or 3? I would have guessed Craft 2, but you linked to the Craft 3 repo for the plugin.
Brad Bell
CC BY-SA 4.0
2018-08-02T19:18:25.717Z
Craft 2 - trying to update with the appropriate versioning
eric MC
<drop-down>
LJ Dynamic Fields - Only Seeing Latest 100 entries
# LJ Dynamic Fields - Only Seeing Latest 100 entries

(Asked by: username_0 on 2018-08-02)

I am currently creating various component entries (under channels). Once created I can then add that specific component to structure (know on my site as a work page). 
On the work page I have a dynamic field (see https://github.com/lewisjenkins/craft-dynamic-fields) that allows a user to scroll through these already created component entries in a dropdown list style. That drop down is a dynamic dropdown generated through LJ dynamic fields with the following code in the CMS.
{% include '_dynamicfields/sections' ignore missing %}

From there the included file is as follows...
{% for channel in craft.entries.section('components') %}
   { "value":"{{ channel.id }}" , "label":"{{ channel | raw }}" }
   {% if not loop.last %},{% endif %}
{% endfor %}

Unfortunately as of late I'm only seeing the latest 100 entries. I haven't seen any reference in either craft CMS documentation or the LJ Dynamic fields documentation.

**Tags:** drop-down

> **Comments:**
> **username_1**: Is this Craft 2 or 3? I would have guessed Craft 2, but you linked to the Craft 3 repo for the plugin.  
> **username_0**: Craft 2 - trying to update with the appropriate versioning  

---

## 1 answers

### Answer by username_1 on 2018-08-02. Score: 1 | Accepted answer

By default Craft 2 will only return 100 elements (entries, assets, users, etc.) at a time.
If you want to get more than that, you need to use limit(null).
{% for channel in craft.entries.section('components').limit(null) %}

This behavior changed in Craft 3 so there is no default limit.


---

