Click or drag to resize
RegisterPageTemplateAttribute Constructor (String, String, Type, String)
Registers a simple page builder page template using a view.

Namespace: Kentico.PageBuilder.Web.Mvc.PageTemplates
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public RegisterPageTemplateAttribute(
	string identifier,
	string name,
	Type propertiesType = null,
	string customViewName = null
)

Parameters

identifier
Type: SystemString
Unique identifier of the page template definition.
name
Type: SystemString
Name of the registered page template.
propertiesType (Optional)
Type: SystemType
Type of the registered page template properties model. The type needs to implement the IPageTemplateProperties interface.
customViewName (Optional)
Type: SystemString
Custom view name for the registered page template. If not specified, the default system view name in format '~/Shared/PageTemplates/_{identifier}' is used.
Remarks
Make sure to provide unique identifier for the page template definition from the start. This identifier is used within the page configuration and any further change can lead to incorrect configuration load. Consider specifying identifier in format 'CompanyName_ModuleName_PageTemplateName', e.g. 'Kentico_Content_LandingPageTemplate'. Use this attribute when simple page template is being developed and no custom controller is needed.
See Also