Re: Possible ifequal and/or ifnotequal bug

2007-10-15 Thread JimT
I figured it was something like that. I've also wondered why there wasn't a way to add a variable in the templates. In the end I settled for the CSS fix which was also something I'd never considered before. It works like a charm and I've learned something new. Thanks RajeshD! On Oct 12, 7:04 am

Re: Possible ifequal and/or ifnotequal bug

2007-10-12 Thread RajeshD
> > The above code is NOT catching the first instance of an NAICS > description which begins with "A". The filter on the first parameter there won't work (as you've already discovered.) 1. If you are using Django SVN trunk, try assigning that filtered value first to a variable using the 'with' t

Possible ifequal and/or ifnotequal bug

2007-10-11 Thread JimT
My question is whether I can compare a filtered template variable to a string as in "{% ifequal naics.description|slice:"0:1" 'A' %}" I'm looping through approximately 1800 NAICS description using the code below. I don't want to output the first "Back to the top" link so I'm trying to use the "if