Hi Folks, I want to do this:
<table> <tr> {% for image in Images %} <td><a href="/gallery/image/{{image.id}}/"><img src="{% thumbnail image.image 200x100 %}"/></a><br/> {{ image.name }}<br/> {{ image.comment }}<br/> </td> {% if forloop.counter % 4 %} </tr> <tr> {% endif %} {% endfor %} </tr> </table> which should hopefully give me a gallery of images where each line has four thumbnails on it. Unfortunately, I can't do the mod (%) in the if statement, as it's not valid syntax. Is there a way around this, or a simpler solution? Thanks, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---