Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
Templates are blueprints for creating pages, areas and components. When you add a page in the Pages app you must choose a template.
A template consist of:
Template definition | |
Template script | required A template script defines the output, typically HTML, and is interpreted by a |
Dialog definition | optional Dialogs are used for content entry. A dialog defines the editable content properties of a template. Pages, area and component templates can all use dialogs. |
Model | optional The model is a JavaBean implementing |
Elements of the Magnolia template mechanism:
The diagram abbreviates the field class as
i.m.u.f.f.d.TextFieldDefinition
to save space. This is not a valid value. Use fully-qualified field class names such as info.magnolia.ui.form.field.TextFieldDefinition
in your definitions.