On 2/13/07, primitive <[EMAIL PROTECTED]> wrote:
> I was just wondering if anyone had any suggestions around creating
> breadcrumbs in django. I know this is a vague question, but I have a
> site built from scratch in django, and I want an easy way to construct
> breadcrumbs, possibly based on the urls.

Depends.  Is the breadcrumb intended to be location within the site
(i.e. You Are Here), or is it intended to be a back-tracking tool
(i.e. You got here by following this path)?

If the former, yeah, URL structure might be a good way to go.

If the latter, story the last x urls visited in the user's session (or
signed cookie).  This has the problem that multiple requestors (say,
open windows), will end up in one click-path for the session.  If that
bothers you, it gets more complicated, and I'd recommend your own
middleware to handle custom querystring parameters or similar.

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

Reply via email to