Creating page templates

This page is a part of a tutorial, which you should follow sequentially, from the beginning to the end. Go to the first page: Getting started with Kentico.

After creating the Home page, imagine that you would like to create more pages that look exactly the same, only with different text. For this purpose, you can turn the Home page into a page template, which you will be able to reuse for creating other pages.

Templates define the basic structure and components of pages without the content added by editors (i.e., content that can be added in the Pages application on the Page or Form tab).

To create a page template out of an existing page:

  1. In the Pages application while in Edit mode, select the Home page.
  2. Open the Properties -> Template tab.

    Opening the Template tab in the Pages application

  3. Click Save as new template.

    Saving a new page template

  4. Fill in the following values: 
    • Template display name: MEDIO clinic - Home
    • Template category: Home pages
      • Normally, you would create a new template category for the Medio clinic. We skipped this step in this tutorial.

    • Assign to the current page: Yes (selected)

    Filling in the details of the new page template

  5. Click Save & Close.
  6. Click Save on the Template tab.

The system creates a page template with the design of the Home page. This means that the page template contains two web part zones and two Editable text web parts. The text entered into the web parts on the Page tab is not saved in the template.

Creating pages using saved templates

To create new pages using the previously saved page template:

  1. In the Pages application while in Edit mode, select the root page.
  2. Click the New (+) icon above the content tree to create a new page.

    Creating a new page in the Pages application

  3. Select the Page (menu item) page type.
  4. Type Medical centers as the Page name.
  5. Select the Use existing page template option.
  6. Find and select the MEDIO clinic - Home page template (under the Home pages category).

    Selecting an existing page template for a new page

  7. Click Save.

The system creates the new page with the web part zones and web parts defined by the page template.

Design tab of the new page using the shared page template

If you now switch to the Page tab, you can add text specifically for this page.

Sample medical center text  Expand source
Medical center of the MEDIO clinic

A clinic (or outpatient clinic or ambulatory care clinic) is a health care facility that is primarily devoted to the care of outpatients. Clinics can be privately operated or publicly managed and funded, and typically cover the primary health care needs of populations in local communities, in contrast to larger hospitals which offer specialised treatments and admit inpatients for overnight stays. Some clinics grow to be institutions as large as major hospitals, or become associated with a hospital or medical school, while retaining the name "clinic".

View the live site

To see the website live:

  1. Open the application list and click Live site at the bottom.

    Opening the live site through the application list

The system opens the site in a new browser tab. This is the final look of the tutorial website.

Viewing the live appearance of the sample website

You can download a package with the exported MEDIO clinic website. Import it into your Kentico installation in the Sites application so that you can compare it with your own implementation.

Previous page: Creating website pages — Next page: Next steps

Completed pages: 8 of 9

ΟΟΟΟΟΟΟΟΟ


Was this page helpful?