Create Site.com Page Templates

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:

  1. Hover over Page Templates on the Overview tab and click New, or click New Page Template in the Page Templates view.
  2. Enter the page template name. Template names can't include special characters, such as #, ?, or @.
  3. Click Layouts and select either a blank page or a predefined page layout, such as a page with a header and footer.
    Note
    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 (Style), and clicking Apply.
  4. 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.
  5. Click Create. The page template opens.

Next, you must complete the template.

Tip
Tip
  • 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 (Properties).
  • 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:
    1. Select the template in the Page Templates view on the Overview tab and click Actions | Create Child Template. Alternatively, click Page Actions | Create Child Template if the template is open.
    2. Enter the page template name. Template names can't include special characters, such as #, ?, or @.
    3. Click Create. The child template opens.
  • Alternatively:
    1. Hover over Page Templates on the Overview tab and click New, or click New Page Template in the Page Templates view.
    2. Enter the page template name. Template names can't include special characters, such as #, ?, or @.
    3. Click Page templates and select the page template.
    4. Click Create. The child page template opens.

Complete Your Template

After you've created a template, you must take these next steps to complete it.