Try {{ pagecontent.plugin }} instead of {% pagecontent.plugin %}



On Wednesday, July 3, 2013 3:11:08 AM UTC+3, Fadi Samara wrote:
>
> I try to build a plugins based application, I have created tags and 
> registered them for each plugin.
>
> I have a table stores each page plugins, and need to render any stored 
> plugin in the template accordingly as inclusion tag.
>
> Now for the template i use this:
>
> {% block slider_region %}{% for pagecontent in pagecontents %}
>     {% pagecontent.plugin %}{% endfor %}{% endblock %}
>
> But this returns:
>
> Invalid block tag: 'pagecontent.plugin', expected 'empty' or 'endfor'
>
> My question, how can I pass the plugin as a tag from view query to a 
> template and be rendered as inclusion tag.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to