Yes, I know, but what I doesn't know, is how to create these cells when
the for loop ends.
<table id="gallery_images">
<tr>
{% for image in gallery.image_set.all %}
{% if forloop.counter0|divisibleby:gallery_cols %}
</tr>
<tr>
{% endif %}
<td>
<img ...>
</td>
{% endfor %}
</tr>
</table>
Martin
On Thu, 30 Sep 2010 15:29:58 +0200, aid <a...@logic.org.uk> wrote:
On Sep 30, 2:14 pm, Martin Tiršel <dja...@blackpage.eu> wrote:
Sorry, my bad, I thought that it has to be completed, so it is ok.
Problem would be only if I wanted to make cell borderds, around the
empty cells too.
For the cells you don't have an <img> object to insert; try inserting
' ' instead. (Minus quotes!) This tends to solve the border
problems.
Cheers,
aid
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.