PyLucid used the django template engine for building the html page.

You can add templates and use them for a couple of pages.
You can use different templates and style combination, because every PageTree entry are associated to a design:
e.g. PageTree 1, 2 and 3 used Design "A", pages 4,5,6 used Design "B" etc.

A Design is a combination of template, Headfiles (stylesheet files) and a color scheme:

  • PageTree
    • Design
      • Template
      • Headfiles
      • Colorscheme

Nearly all output can be customized. See also Webpages who use PyLucid.

There are two different templates, both uses the django template engine:

  • the global template: It's for building the complete CMS page.
  • the plugin templates: This are small template snippets for the plugin output

Every PageTree can have it's own Design.

clone a Design

To get a copy of existing Templates/Styles etc. use the clone design feature:

  • PyLucid admin menu -> edit look -> clone design

This clone a existing page design with all associated components.

customized Design

You can edit Styles/Templates directly in the browser.

The fastest way is to use the sub menu points under, from the normal page view:

  • edit page -> edit current look -> ...

design switcher

Since 65bda3f you can temporally switch the design for all pages.
This is good for testing new style/templates without to develop in the public ;)

You find "Template/Style switcher" under:

  • PyLucid admin menu -> edit look -> switch design


To start a new customise design, you can do this in this way:

And the bad news:
Today, there exist no good way, to switch templates/styles or mass assign style/templates to pages, discuss:
The easy way to do this now, is to change the existing design and assign the other template/colorscheme to it.

design <-> template

The relationship between the design and the template would be set by the path to the design as a string.

If you will rename a template, you must do this in two steps:

  • rename the template path
  • change the path in design entry, too.

sub pages