Templating

Overview

Templates are the base of every Magnolia page. Pages are generated by "merging" a template and the corresponding content of the repository. A single template can be used for serving many different pages.

Templates generally consist of a JSP script and a "template definition", which is how Magnolia knows about this template.

Template Definition

A template definition is a just a couple of properties which describe the template (e.g. title, description) and the path to the template script. Once a template is registered in Magnolia, it will be available to authors; they will be able to select the template in the website workspace.

A similar concept exists for paragraphs, which will be covered in detail later.

Templates

The following pages describe how to configure your templates.

If you want to see examples, check out the Building templates - example pages.