Hi Mike - Replying to an older post, under the theory that any answer helps, even if it comes months later. ;)
In July I posted a template tag that allows you to break a list up into n number of sublists. The snippet is here: http://www.djangosnippets.org/snippets/889/ with more detailed info and examples here: http://herself.movielady.net/2008/07/16/split-list-to-columns-django-template-tag/ Hope that helps. :) Annie On Jun 3, 7:59 am, mike171562 <[EMAIL PROTECTED]> wrote: > Thanks for your help tim, I had a look at your filter, but I ended up > using thetemplatetag here: > > http://www.djangosnippets.org/snippets/660/ > > The only problem is it requires you to know the length of your list, > and the length of mine varies. > > {% load splitlist %} > {% split_listtagsas new_list 30 %} > {% for x in new_list.0 %} > {{x.call}} > {{x.date}} > {%endfor%} > > {% for x in new_list.1 %} > {{x.call}} > {{x.date}} > {%endfor%} > > etc. but im trying to iterate through the length of the list something > like: > > length = range(len(tags)) > > {% load splitlist %} > {% split_listtagsas new_list 30 %} > {% for y in length %} > {% for x in new_list.{{y}} %} > {{x.calldate}} > {%endfor%} > {%endfor%} --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---