Functions

The Open Cph Razor-based templates use a number of CMS Functions to render content.

The CMS Functions in use normally add some functionality to the website via the templates, for example, various types of the website navigation menus or image sliders.

These are the CMS Functions in use on the Open Cph (Razor) starter website:

Composite.Media.BootstrapCarousel

This function displays images in a slider, or a carousel.

A custom CMS Function created for the starter sites.

Used in the "Front Page Content Start" page template feature.

Composite.Navigation.Distributed

This function displays a side navigation menu as that reflects the hierarchy of pages on the website.

Part of the Composite.Navigation.Distributed add-on.

Used in the "Navigation Column" page template feature.

Composite.Navigation.LanguageSwitcher

This function displays a language switching menu for the websites in two or more languages.

Part of the Composite.Navigation.LanguageSwitcher add-on.

Used in the "Service Menu" page template feature.

Composite.Web.Html.Template.CommonMetaTags

This function adds common meta tags to the <head/> element of a page.

A built-in CMS Function.

Used in the "Descriptive HTML head elements" page template feature.

Composite.Web.Html.Template.HtmlTitleValue

This function sets the <title/> element on a page.

A built-in CMS Function.

Used in the "Hero Unit (default)" page template feature.

Composite.Web.Html.Template.MetaDescriptionValue

This function sets the <meta name="description" /> element on a page.

A built-in CMS Function.

Used in the "Hero Unit (default)" page template feature.

Layout.HeroUnit

This function chooses to display the contents of the "HeroUnit" content placeholder if the latter is not empty. Otherwise, it shows the contents of the "Hero Unit (default)" page template feature.

A custom CMS Function created for the starter sites.

Used directly in the Master Layout.

This function shows the custom links ('Top Links') to pages manually set for a website.

A custom CMS Function created for the starter sites.

Used in the "Service Menu" page template feature.