Answer the question
In order to leave comments, you need to log in
How to substitute a variable in divisibleby?
Good afternoon. Crashes when executing code
{% set num = (category|length) // 3 %}
<ul class="uList1 ">
{% for item in category %}
{% if loop.index is divisibleby(num) %}
</ul>
<ul class="uList1 ">
{% endif %}
<li><a href="#">{{ item.name }}</a></li>
{% endfor %}
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question