What you are asking for is called breadcrumbs. You can search google for django + breadcrumbs to find stuff about it and what others have done. One way of doing it, is explained in this blog post, it's both simple and well explained. If this is the best way, i do not know, but at least it'll get you started.
http://www.martin-geber.com/thought/2007/10/25/breadcrumbs-django-templates/ ~Jakob On 26 Mar., 14:04, xiaojay <xiao...@gmail.com> wrote: > sorry to the English I speak. I am not an native English speaker. > > suppose my sitemap is something like below; > > /home > /home/products/ > /home/products/1 > /home/products/2 > . > . > . > /home/news/ > /home/news/1 > . > . > . > /home/login/ > /home/logout/ > . > . > . > when a website visitor browser any page, I want on the page the right > up corner contain links show where he is. eg: when he browser the > page /home/product/1, I want the link will be "/home/product/ > product_name" and "home" is a link to home page ... etc > > I know the way putting some judgging code in every view, but is there > a better way in django? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---