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
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
2 matches
Mail list logo