i often find myself thinking "there must be a better way" when
creating site navigation that has different images for normal/active/
hover link.
so if my current location is "/news/archive", what i usually do is:
- define current_view="news_archive" as variable for template
- in template, navigation part:
  if current_view == link_view:
    display active link
  else:
    display normal link

what do you do? is there a better way? is there some way to use url or
some other tag to make it simpler?
should i write a custom tag?

Aljosa

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