Creating a page template

You can create a page template within Templates so when you want to create a brand new page version, you can select this page template to reduce the time it takes and steps made to set up a new page version within your site.

For example, say you always use the same header and footer component group on all your pages (see the creating a component group article for more information. You can create a page template that includes these. So, when you create a new page version, they're already added to the page version, saving you time. Or, if you always have a Markdown component on your page, you could create a page template that has this in the Main section.

A page template needs to be created in Templates before you can use it across your pages. Click Templates on the dashboard and then follow the steps below to create a page template:

  1. Select Page templates and click + New page template

2a7a1aa Select page templates and then click add new page template

  1. Input a name for your page template and then click Save

1eced7c Input a name for your page template and then click save

  1. Click + New page version in the Page versions section

f117453 Click the add new page version button

  1. Input a Page version name and click Save

27b1f79 Input a page version name for your template then click save

  1. Add component groups, layout elements, or Frontend components that you want to reuse across multiple pages, Preview your page, and then click Save

4e9b2be Template example

  1. Hover on the name of your page template version in the Draft section, click more icon, and select Make default

d5bcde8 Select make default from the dropdown

Using a page template

Now you've created a page template, you can now use it when creating a page version in the site builder.

Create a page version by clicking New then Create page version (see the creating a page version article if you haven't done this before).

In the dropdown list for Layout, you'll now see the name of your page template under the page template header, which you can select.

ca9bf1b Click the layout dropdown when creating a new page version to select the template

The page builder will open when you click Save. Here, you'll see that the page is set up just as you created it within your page template. You can now add and remove layout elements and Frontend components as you wish as well as editing any components for the individual page.

Editing a page template

Once you've saved a page template, you can edit it at any time.

Go to Templates, click on the name of your page template within the page template section, then click the edit icon on the name of your page within the Page versions section.

6c7b71a How to edit a template page version

The page builder will open and you can edit the layout elements, components, and their configurations as you'd like to. Preview your page, then click Publish.

Any page version you've already created with your page template won't update with these changes. A page version is created independently from the page template, so it's not synced once it has been created.

Deleting a page template

To delete a page template, hover on the name of your page template within the Page template section and click the trash can icon. This will delete it straight away. As any page using the template was saved and modified separately, it won't affect these pages in any way.

0c60db3 How to delete a page template