Template Features
The Open Cph Razor-based templates use a number of page template features.
Page template features allows you to keep markup shared by multiple templates in one place and edit it either in the CMS Console or in external XML/XHTML editors.
Please see "Page Template Features" for more information.
Both the Master Layout and the templates use these page template features:
- Aside Column
- Content Footer
- Content Start
- Descriptive HTML head elements
- Front Page Content Start
- Hero Unit (default)
- Main Navigation
- Navigation Column
- Page Footer
- Service Menu
Let's examine each page template feature in use.
(Presented in alphabetical order.)
Aside Column
This feature inserts content in the right part ('aside') of a page (only those based on 2- or 3-column templates).
The content will be inserted below the "aside" content placeholder by default.
The feature has no content by default.
These Open Cph starter site templates use this feature:
- Frontpage
- ThreeColumns
- TwoColumnsContentAside
Content Footer
This feature inserts content between the content part of the page and the page footer.
The feature has no content by default.
Inserted in the Master Layout and shared by all the templates.
Content Start
This feature inserts content between the top navigation bar and the Hero Unit.
The feature has no content by default.
All the templates include this feature except for the "Front page" template, which includes the equivalent, "Front Page Content Start", instead.
Descriptive HTML head elements
This feature inserts additional elements in the <head/>
element of a page.
By default, it contains the CMS Function "Composite.Web.Html.Template.CommonMetaTags", which adds a few common meta tags to <head/>
.
Inserted in the Master Layout and shared by all the templates.
Front Page Content Start
This feature inserts content between the top navigation bar and the Hero Unit on pages based on the Front Page template.
By default, the feature contains the CMS Function "Composite.Media.BootstrapCarousel", which displays images in a slider ('carousel').
Other templates include the equivalent of this feature, "Content Start", instead.
Hero Unit (default)
This feature inserts content between the "Content Start", or "Front Page Content Start", and the content part of the template.
It is not used directly in a template but via the "Layout.HeroUnit" function, which chooses to include the "HeroUnit" content placeholder or this feature if the content placeholder is empty.
By default, this feature shows the page title and description retrieved from the corresponding properties of the page by using the CMS Functions "Composite.Web.Html.Template.HtmlTitleValue" and "Composite.Web.Html.Template.MetaDescriptionValue".
Used in all the templates.
Main Navigation
This feature inserts the top-level navigation menu in the center of the top bar of a page.
By default, it contains the CMS Function "Layout.Navigation.Menu" which renders the top-level menu.
Inserted in the Master Layout and shared by all the templates.
Navigation Column
This feature inserts the navigation menu in the left part ('nav') of a page (only those based on 2- or 3-column templates).
By default, the feature contains the CMS Function "Composite.Navigation.Distributed" which renders the menu.
These Open Cph starter site templates use this feature:
- ThreeColumns
- TwoColumnsNavigationContent
Page Footer
This feature inserts content below the Content Footer ('<footer/>
').
The feature has some default content: information about the CMS in use and the "Back to Top" link .
Inserted in the Master Layout and shared by all the templates.
Service Menu
This feature inserts the custom ('Top Links') navigation menu and the language switching menu in the right part of the top bar of a page.
By default, it contains the CMS Functions "Layout.Navigation.TopLinks" which renders the Top Links menu and "Composite.Navigation.LanguageSwitcher", which renders the language switching menu.
Inserted in the Master Layout and shared by all the templates.