I have a menu with a class="active" to insert when a page is loaded.
I am searching a way to put this class="active" when a page (flatpage,
generic or custom view) is the same of the link.
something like:
{% ifequal request.url "/ricerca/" %} class="active" {% endif %}
is it possible?
and is it possible to do a ifcontains to get '/ricerca/' and
'/ricerca/?search="text"' ?
where can I get the request url?
--
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net
SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928
Rispetta l'ambiente: se non ti è necessario, non stampare questa mail
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---