On 10/10/06, Waylan Limberg <[EMAIL PROTECTED]> wrote:
[snip]
>  Although, I'm not sure how you would pass the
> current user to the loader.

Just rethinking my answer. I would probably go with a custom
templatetag instead. You already have the text of the sidebar template
(from your db) as a variable in your context so pass that (and perhaps
the user (or use RequestContext)) as an argument. Then, within your
tag, render the sidebar template [1], setting the context according to
the current user and return the rendered tag as a string, which will
then get displayed on your page.

[1]: 
http://www.djangoproject.com/documentation/templates_python/#rendering-a-context


-- 
----
Waylan Limberg
[EMAIL PROTECTED]

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

Reply via email to