There is a snippet http://djangosnippets.org/snippets/1729/
"Template tag to handle navigation item selection"
which is quite useful for creating navigation/menu structure
Jason

On Apr 12, 2011, at 11:43 AM, javatina wrote:

> You can put your current menu option in context and then, while
> rendering pages, check for it and use a different style for the active
> menu option.
> 
> On Apr 12, 5:33 am, Daniel Gerzo <[email protected]> wrote:
>> Hello all,
>> 
>> I was wondering how do you generate the navigation menu in your web
>> sites, with a possibility to mark up the "active" page?
>> 
>> My searching revealed some solutions, most of them based on implementing
>> a custom template tag and then parsing the request.path. I was wondering
>> whether someone came up with something more nicer?
>> 
>> Thanks!
>> 
>> --
>> Kind regards
>>    Daniel Gerzo
> 
> -- 
> 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.
> 

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

Reply via email to