Hi, I don't think I know how to actually do what you are suggesting.
Lets say I have three menu options with the following URLS: "One" - /one/show "Two" - /two/show "Three" - /three/show Currently I have somthing like this in my main.html page template: {% if navi %} > {% for entry in navi %} > <li class=""><a href="{{ entry.href }}">{{ entry.name > }}</a></li> > {% endfor %} > {% endif %} > With the following view function: def show_mainPage(request): > > navigation = [ {'href':'/one', 'name':"One"}, > {'href':'/two', 'name':"Two"}, > {'href':'/three', 'name':"Three"}] > return TemplateResponse(request, 'main_page/main.html', {'navi': > navigation, 'main_settings':main_settings.objects.get(id=1)}) > So how would I set the "active" CSS class in my template for the correct nav entry? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.