2.3. Template

class lfc.models.Template(*args, **kwargs)

A template displays the content of an object.

Attributes:

name
The name of the template. This is displayed to the LFC user to select a template. Also used by developers to register a template to a content type.
path
The relative path to the template file according to Django templating engine.
children_columns
Stores the amount of columns for sub pages. This can be used for templates which displays the children of an object like overviews.
images_columns
Stores the amount of columens for images. This can be used for templates which displays the images of an object like galleries.

Previous topic

2.2. Content

Next topic

2.4. Manager

This Page