Hi Fred,
its already included at the start of the template to load all plugin tags
{% load slider ...%}
Thanks,
On Wednesday, July 3, 2013 11:00:31 PM UTC+10, Fred Stluka wrote:
>
> Fadi,
>
> You need to {% load %} the file that defines the tags.
>
> --Fred
> ------------------------------
> Fred Stluka -- [email protected] <javascript:> --
> http://bristle.com/~fred/
> Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
> Open Source: Without walls and fences, we need no Windows or Gates.
> ------------------------------
>
> On 7/2/13 8:11 PM, 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] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
--
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.