Kentico CMS 7.0 Context Help

Template

Template

Previous topic Next topic Mail us feedback on this topic!  

Template

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This tab is used to configure the page template and content inheritance of the selected document.

 

Template

 

The textbox in this section displays the name of the page template currently assigned to the document. The options above determine what type of template will be used:

 

Inherit from parent

All culture versions use the same page template

Each culture version uses its own page template

 

If the first option is selected, the page template set for the parent document will automatically be loaded.

 

With the other two options, you can assign a specific template to the document via the Select button. If the document is available in multiple languages (cultures), you can choose whether all versions should share the same template or if it should be possible to specify a different one for each language. By selecting the third option, you can configure the template settings on this tab separately for each document version by switching between cultures using the language toolbar in the main menu of the CMS Desk -> Content tab.

 

Changes need to be confirmed by clicking Save Save.

 

 

InfoBox_Note

 

Setting the template of the website's root document

 

The website's root document has no parent from which the template could be inherited, so the first radio button option (No master page template) may instead be used if you wish to have an empty root page.

 

In most scenarios, it is highly recommended to assign an appropriate template to the root document and use content inheritance.

 

Additionally, the following actions may be used to manage the document's template:

 

SaveAsNewPageTemplate Save as new template - saves the current template as a new re-usable page template. This can be useful if you wish to use an ad-hoc template for other pages.

CloneAsAdHoc Clone template as ad‑hoc - creates a copy of the current page template as a new ad-hoc template. This allows you to modify the design of the page without affecting other documents that use the original template.

EditTemplateProperties Edit template properties - opens a new window where the properties of the currently assigned page template can be configured.

 

Inherit content

 

In this section, you can configure the visual inheritance of content for the document (if it is not a master page). Please select one of the following options:

 

Use page template settings

The visual inheritance is determined by the settings of the assigned page template.

 

To manage the template's configuration, click the EditTemplateProperties Edit template properties button and set the Inherit content property on the General tab.

Do not inherit any content

The document does not inherit any content from parent documents in the content tree.

Inherit only master page

The document inherits content from the first master page above the document in the content tree. If there are multiple master pages, the document only inherits from the closest one in the hierarchy.

Select inherited levels

You can select exactly from which parent documents the page should inherit via the checkboxes below.

 

More information can be found in:

 

Developer's Guide -> Development -> Web development overview

Developer's Guide -> Development -> Web development overview -> Portal engine development model -> Visual inheritance

Developer's Guide -> Content management -> Multilingual content