thanks, that´s great input.

I´m not sure, but do I have to pass the current user to the loader?
I don´t think so.

the template, stored in the database should look like this:

{% CommentsUser userid %}
{% TagsUser userid %}
{% OwnEntry 123 %}
{% LatestComments userid %}
{% FlickrStuff userid %}

so, it basically consists of templatetags - "userid" is a variable  
which is passed to the template by the view.

did I miss something here?

thanks again,
patrick



Am 10.10.2006 um 21:56 schrieb Waylan Limberg:

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