On 24 Mar 2008, at 19:29 , Tim Sawyer wrote: >> The second thing to do is to read the template documentation to see >> what is available, because doing so will turn up things like this: >> >> http://www.djangoproject.com/documentation/templates/#divisibleby > > I saw that, but I couldn't work out how to conditionally output html > based on > its value. {% if forloop.counter|divisibleby: "4" %} doesn't work.
If that's your literal code, you should probably remove the space between the colon and quote: divisibleby:"4" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---