Template
Fully Customizable Site Template
The site template is only used during preview and export. It is not used in Edit mode.
The site template give you the ability to modify the underlying template code for your entire site. It's perfect for placing scripts, such as Google Analytics anywhere within the page structure.
The site template is used on every page of your website. If you need to insert a script just on specific pages, you should use the page level code areas instead.
Page Properties
The Site Template has access to all the page level properties, such as {{page.title}}
and {{page.description}}
. A full list can be found in the Available Data section under Page Properties in this manual.
To reference a file in you Resources folder you can use the following page tag to get the correct path to the resources folder:{{page.resourcesPath}}.
The following example shows how you might link to a "store.js" file that's in a "scripts" folder in the Resources area.
Site Template Example
The following is an example of the default site Template. Please note the template is only used during preview and export. It is not used in Edit mode.
Dev Diary Videos for Site Templates
The following videos will show you how to use the Template feature in Elements. The videos were recorded with a development version of Elements so the feature(s) available now may differ slightly to those in the video.
Last updated