You can easy create our own widget with the generic plugin.

create a new template:

  • Django admin site -> Dbtemplates -> template -> Add

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" %}

result:

Use the template 2:

1
{% lucidTag generic template_name="own_generic_template.html" var1=123 var2=456 %}

result: