On Wed, 2009-04-01 at 10:57 +1100, Malcolm Tredinnick wrote: > On Tue, 2009-03-31 at 16:51 -0700, Chris O'Donnell wrote: > > Hello all, > > > > Here's my dilemma: I want every fourth item displayed using a {% for > > %} loop to be rendered using a different block of HTML. This want is > > specific to a CSS framework I'm using, Blueprint CSS. Any of you that > > use it and haven't modified its source know that for the last column > > in the grid, class="span-whatever last" needs to be specified. Just > > wondering if anyone knows how to do this. > > This came up in a thread yesterday ([1]). The answer is to use the > divisbleby filter on forloop.counter.
Sorry, I gave the wrong reference to yesterday's thread. I meant this one (particularly Alex's final answer): http://groups.google.com/group/django-users/browse_thread/thread/287e22b92f6656fa/f8b4a85be32b5d14?lnk=gst&q=divisibleby#f8b4a85be32b5d14 Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---