Index » documentation » user manual » plugins » generic widget » use own templates
You can easy create our own widget with the generic plugin.
create a new template:
e.g. create own_generic_template.html with this content:
1 2 3 4 5 6 7 8
<dl> <dt>Variable one:</dt> <dd>{{ var1 }}</dd> <dt>Variable two:</dt> <dd>{{ var2 }}</dd> <dt>page language:</dt> <dd>{{ page_language }}</dd> </dl>
Note: The Variable page_language comes from the global context. Useable keys are listed in the tag list (You find the 'tag list' link if you edit a template or a page)
Use the template 1:
1
{% lucidTag generic template_name="own_generic_template.html" var1="Foo" var2="Bar" %}
Use the template 2:
{% lucidTag generic template_name="own_generic_template.html" var1=123 var2=456 %}
permalink
django-processinfo: 5.5 ms of 359.7 ms (1.5%)