Re: check if request.url is a known string

2008-10-15 Thread pength
Maybe you can try {% ifequal request.META.PATH_INFO "/ricerca/" %}, but I think a templatetag will do this better. ;) On Oct 14, 3:53 pm, Alessandro <[EMAIL PROTECTED]> wrote: > 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

check if request.url is a known string

2008-10-14 Thread Alessandro
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