I want a custom loop with data limit, anyone can help me like
{% for p in taxonomy.findTaxonomy({'category':'featured'}) %}
{{ p.title }}
{% endfor %}
Thanks
I want a custom loop with data limit, anyone can help me like
{% for p in taxonomy.findTaxonomy({'category':'featured'}) %}
{{ p.title }}
{% endfor %}
Thanks
Something like this should work:
{% for p in taxonomy.findTaxonomy({'category':'featured'}) %}
{% if loop.index <= 5 %}
{{ p.title }}
{% endif %}
{% endfor %}
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1362 | 9 years ago | ||
| 2 | 940 | 9 years ago | ||
| 2 | 4069 | 9 years ago | ||
| 1 | 2960 | 9 years ago | ||
| 3 | 1124 | 9 years ago |