New answers tagged

2

Maybe you can try like this, attribute you seek is twig function not from the craft entry value. {% for i in 1..5 %} {% set field = attribute(entry,'fieldName' ~ i) %} {% if field is defined and field|length %} … {% endif %} {% endfor %}


Top 50 recent answers are included