>
> 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' templatetag:
http://www.djangoproject.com/documentation/templates/#with

2. Another, probably simpler, solution is to use CSS to hide that
first "Back to the top" link like this:

<td><a href="#top" class="body letter-{{ naics.description|
slice:"0:1" }}">Back to the top</a>&nbsp;</td>

Then, in your CSS add:

a.letter-A {display:none;}




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to