A template decides what a page is before anyone writes on it: which parts are the same on every page, where authors may add components, which components, and how each of them is set up. Change a template, and every page made from it follows.
Templates belong to a site's configuration. Open Home › Templates, choose the configuration at the left, and you see its templates as a list or as cards, with their status and when each was last changed and published.
| Part | What it holds |
|---|---|
| Structure | The fixed parts of the page, such as the header and footer, and the containers where authors add content |
| Initial Content | What a new page starts with: components already in place, ready to be filled in |
| Component configuration | For each container: which components may be added. For each component: its options, such as the heading sizes a title may use, and its Styles |
| Page configuration | The client libraries (the site's CSS and JavaScript) and the options of the page itself |
Edit opens the template in the editor you know from pages, with three modes:
The page menu of the template editor also has Initial Page Properties, for the properties new pages start with, and Page Configuration.
Note: A change to the structure shows on existing pages at once, on the author instance. It shows on the live site when you publish the template.
Select a container in Structure mode and choose Configuration. Under Allowed Components, tick the groups or the single components that may be added to this container. Ticking a whole group also allows the components added to that group later.
The same dialog sets a component's own options. Two containers can have different configurations, so a sidebar can allow other components than the main area. A configuration has a name and can be shared between templates; changing it changes every place that uses it.
A component's configuration can define Styles: named looks, such as "Dark" or "Wide", each backed by a CSS class the site's developers provide. Authors then choose among them with the Styles button of the component's toolbar, without touching code.
| Action | What it does |
|---|---|
| Edit | Opens the template editor |
| Properties | Title, description and thumbnail. Generate Preview makes the thumbnail from the structure |
| Enable, Disable | Offers the template when a page is created, or stops offering it. Existing pages keep working |
| Publish, Unpublish | Puts the template and its configurations on the live site, or takes them off |
| Copy, then Paste | Makes a new template from this one |
| Delete | Refused while pages still use the template; the pages are listed |
When someone creates a page, they see the enabled templates that are allowed at that place. Allowed Templates, in the properties of a page, decides this for the pages below it. It is usually set once, on a site's top page.
When a component you expect is missing from the editor's Components tab: