Hmm, you've got me there! I looked at the source but I'm afraid my
eyes crossed halfway through. Maybe someone else can help?
On Apr 8, 2008, at 12:57 AM, Kevin Monceaux wrote:
>
>
> On Tue, 8 Apr 2008, Eric Abrahamsen wrote:
>
>> You just want plain old {% resetcycle %}, nothing else. It
On Tue, 8 Apr 2008, Eric Abrahamsen wrote:
> You just want plain old {% resetcycle %}, nothing else. It will reset
> the innermost cycle you put it in...
I tried the above, and still get the same results. I'm not sure if it
makes a difference, but although I'm using cycle within a loop I've
> Thanks, that sounds like just what I'm looking for. However, I've
> applied
> the patch and added a {% resetcycle rowcolors %} tag to the end of my
> include tag's template but it's not resetting the cycle var. I
> deleted
> the defaulttags.pyc file to make sure it got recompiled and also
Eric,
On Mon, 7 Apr 2008, Eric Abrahamsen wrote:
>
> Someone pointed me at this page, and I've been happily using the
> resetcyle tag ever since..
>
> http://code.djangoproject.com/ticket/5908
Thanks, that sounds like just what I'm looking for. However, I've applied
the patch and added a {%
Someone pointed me at this page, and I've been happily using the
resetcyle tag ever since..
http://code.djangoproject.com/ticket/5908
On Apr 7, 2008, at 10:33 PM, Kevin Monceaux wrote:
>
> Django Fans,
>
> I have another cycle tag question. Is there any way to reset a
Django Fans,
I have another cycle tag question. Is there any way to reset a cycle tag
variable so that it starts from the beginning? In a inclusion tag's
template I have a {% cycle 'Odd' 'Even' as rowcolors %} tag at the top of
the template and elsewhere in the template use {% cycle
Django Fans,
On Sat, 5 Apr 2008, Kevin Monceaux wrote:
> When used inside a loop is there any way to have the cycle tag simply
> cycle through the given strings/variables each time it's called regardless
> of the loop index?
> I tried placing a {% cycle 'Odd' 'Even' as rowcolors %} outside
Django Fans,
When used inside a loop is there any way to have the cycle tag simply
cycle through the given strings/variables each time it's called regardless
of the loop index? The spot I need to use the cycle tag within my loop is
inside an ifchanged block, so the cycle tag is not called on
8 matches
Mail list logo