Using Page Template Features

Insert template features in page templates regardless their types

You can insert template features in your page templates.

In C1 CMS v. 4.0 or later, you can create and use templates of 3 types: Razor-, Master Page- and XML-based.

Each type of the template has its own syntax to insert a page template feature. But basically you should make a use of an ad-hoc function or method and pass the name of the template feature to it as a parameter.

Inserting a template feature in a Razor template

In Razor templates, make use of the @PageTemplateFeature helper method to insert a template feature.

@PageTemplateFeature("Aside Column")

(See also: Using Page Template Features in Razor Templates)

Inserting a template feature in a Master Page template

In Master Page templates, use the <c1:PageTemplateFeature/> control to insert a template feature.

<c1:PageTemplateFeature Name="Aside Column" runat="server" />

(See also: Using Page Template Features in Master Page Templates)

Inserting a template feature in an XML template

In XML templates, insert a template feature using the Composite.Web.Html.Template.PageTemplateFeature function (via Insert | Function Markup).

<f:function name="Composite.Web.Html.Template.PageTemplateFeature"
	xmlns:f="http://www.composite.net/ns/function/1.0">
  <f:param name="FeatureName" value="Aside Column" />
</f:function>