A page template lets you define the layout and functionality of site pages in one location. By adding common page elements to the template and then basing site pages on it, you can achieve a consistent look and feel throughout your site. And because a template-based page inherits the template's elements, you can make site-wide changes from one location.
Required Editions
| Available in: Salesforce Classic |
|
Available for purchase in: Enterprise, Performance, and Unlimited Editions Available (with limitations) in: Developer Edition |
| User Permissions Needed | |
|---|---|
| To build, edit, and manage Site.com sites: |
Site.com Publisher User field enabled on the user detail page AND Site administrator or designer role assigned at the site level |
You can create a page template from a layout, or if you've already created a template, you can use it as a base to create a child template, which lets you reuse the design of the main template.
Create a Page Template from a Layout
To start from scratch with a blank template or use a basic page layout:
- Hover over Page Templates on the Overview tab and click New, or click New Page Template in the Page Templates view.
- Enter the page template name. Template names can't include special characters, such as #, ?, or @.
- Click Layouts and select either
a blank page or a predefined page layout, such as a page with a header and
footer.
Note Predefined page layouts use panels to create columns, headers, and footers. These panels use inline CSS to set their position, so you can easily modify the layout after the page is created. However, if you're familiar with CSS and prefer using CSS rules, you can remove the inline style by selecting the panel, deleting the code from the Code tab in the Style pane (
), and clicking
Apply.
- Choose a layout mode:
- To expand the page to fill the width of the browser window, click Full width.
- To set the page width, click Fixed width and enter the width.
- Click Create. The page template opens.
Next, you must complete the template.
- By default, any template you create is only available to other site
administrators and designers in your organization. To let contributors
create pages based on the template, select Available to
Contributor in the Properties pane (
). - You can also create templates by converting or duplicating other pages.
Create a Child Template
To use an existing template as a base for a child template:
- The quickest option is to:
- Select the template in the Page Templates view on the Overview tab and
click
| Create Child Template. Alternatively, click Page Actions | Create Child Template if the template is open. - Enter the page template name. Template names can't include special characters, such as #, ?, or @.
- Click Create. The child template opens.
- Select the template in the Page Templates view on the Overview tab and
click
- Alternatively:
- Hover over Page Templates on the Overview tab and click New, or click New Page Template in the Page Templates view.
- Enter the page template name. Template names can't include special characters, such as #, ?, or @.
- Click Page templates and select the page template.
- Click Create. The child page template opens.
After you've created a template, you must take these next steps to complete it.