I am currently writing a navigation system for a new site. It consists of a top level horizontal dropdown nav at the top of all the pages, along with a secondary subnav on the child pages.
I have a good system working for the top level nav with DRY urls and css highlighting of the active page. The challenge I am having now is I see duplication for my sub level nav. Here is an example of the dpaste http://dpaste.com/61199/ Should I refactor the code to place my menu items into a python list and build my navs dynamically? Is there another easier way? This list would comprise of url entries ( objects from urls.py ) with an added label (i.e. 'My Friends') that will be listed hierarchically. Basically, I want to be able to pass in a list object (nav) to my templates and use the template looping constructs to dynamically build my menu system. Does anyone out there think this is the right/wrong approach? Any feedback would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---