On 26 Aug., 15:56, joconnell <johngerardoconn...@gmail.com> wrote: > Hi Uwe, > > You might be able to leverage the 'url' template tag which comes with > django? >
Hi John & Bruno, thanks for your answer. I've looked at the url tag, but sadly it doesn't help me with customizing the url's in the left navigation. The idea is that those url's should change according to the URL of the page, so the add_observation view (which accepts those parrameters you mention, btw ;-) can change from /add_observation /de/add_observation /de/hf/add_observation and so should all others like location_ranking (a ranking of locations where birds have been observed), observer_ranking (rankings of observers and so on. I think right now it would be easiest to add a custom tag called "pathfinder" someting similar which does the following: - check if request.path matches a /??/???/ pattern (/country_code/ aread_code/) - check if it matches /??/ (just country_code) - or none of the above, and according to what matched, return a simple string I can prepend to the {% url club300.views.add_observation %} for instance. The URL pattern won't exceed two levels of "area designation" as I'll be using iso country codes and 3-letter codes for the areas in a country (german car number plates come in handy as they also represent the districts I'm interesting in ranking). So would it be possible to access the request.path property from within a custom template tag? All the best & thanks again for your guidance, Uwe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.