You may want to investigate the code at Satchmo (www.satchmoproject.com). I know that they do something similar for their categories and sub-categories.
Tim On Nov 29, 1:14 pm, MikeHowarth <[EMAIL PROTECTED]> wrote: > Basically I'm looking to expand a sub navigation dependent upon > whether the category belongs to the selected hierachy. > > Basically I was thinking of doing something along the lines: > > url = 'parent/child' > url_bits = url.split('/') > > if cat.slug == url[1]: > #build parent nav - don't recurse > else: > #build parent/child nav - hence recurse > > The logic should be fairly straightforward, however what I'm stumped > by is how I would access the url within a template tag given I won't > already have a request object. > > Is there a simple way to do this within the template tag or would I > need to create a context processor and would this be available within > the templatetag or only within the template itself? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---