I have this exact scenario in my project: {% if forloop.counter0|divisibleby:"3" %}<tr>{% endif %} <td style="text-align: center;"> <a href="/c/{{category.name}}"> <img src="/media/categorypreviews/{{category.preview}}" alt="{{category|upper|escape}}"/><br /> <span style="color: {{category.colour}};">{{category|upper|escape}}</span> </a> </td> {% if forloop.counter|divisibleby:"3" %}</tr>{% endif %} {% endfor %}
- Re: How do I do this? (Template Question) Kenneth Gonsalves
- Re: How do I do this? (Template Question) Boffbowsh
- Re: How do I do this? (Template Question) Milton Waddams