Re: Another Cycle Tag Question

2008-04-09 Thread Eric Abrahamsen
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

Re: Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
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

Re: Another Cycle Tag Question

2008-04-07 Thread Eric Abrahamsen
> 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

Re: Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
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 {%

Re: Another Cycle Tag Question

2008-04-07 Thread Eric Abrahamsen
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

Another Cycle Tag Question

2008-04-07 Thread Kevin Monceaux
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

Re: Cycle Tag Question

2008-04-06 Thread Kevin Monceaux
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

Cycle Tag Question

2008-04-05 Thread Kevin Monceaux
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