Class PageTemplateDefinition
- Namespace
- Kentico.PageBuilder.Web.Mvc.PageTemplates
- Assembly
- Kentico.Content.Web.Mvc.dll
Definition of a page template for Page builder feature.
public sealed class PageTemplateDefinition : ViewCustomizableComponentDefinition, IComponentDefinition
- Inheritance
-
objectPageTemplateDefinition
- Implements
- Inherited Members
- Extension Methods
Constructors
PageTemplateDefinition(string, string, string, string, string, Type, IEnumerable<string>)
Creates an instance of the PageTemplateDefinition class with custom view and without custom controller assigned to the page template. The default system controller is used instead.
public PageTemplateDefinition(string identifier, string customViewName, string name, string description, string iconClass, Type propertiesType, IEnumerable<string> contentTypeNames)
Parameters
identifier
stringUnique identifier of the page template definition.
customViewName
stringCustom view name for the registered page template.
name
stringName of the registered page template.
description
stringDescription of the registered page template.
iconClass
stringFont-icon CSS class of the registered page template.
propertiesType
TypeType of the registered page template properties model.
contentTypeNames
IEnumerable<string>Content types this page template is registered for.
Properties
ContentTypeNames
Content types this page template is registered for.
public IEnumerable<string> ContentTypeNames { get; }
Property Value
- IEnumerable<string>
DefaultPropertiesActionName
Name of the default properties action.
public string DefaultPropertiesActionName { get; }
Property Value
- string
DefaultViewSubFolderName
Folder used to locate the view when specific path is not provided via constructor.
protected override string DefaultViewSubFolderName { get; }
Property Value
- string
PropertiesFormMarkupControllerName
Name of the properties form markup controller.
public string PropertiesFormMarkupControllerName { get; }
Property Value
- string
PropertiesType
Type of the registered page template properties model.
public Type PropertiesType { get; }
Property Value
- Type
Remarks
The type needs to implement the IPageTemplateProperties interface.
RouteName
There is no route for page templates. The template markup is rendered directly.
public override string RouteName { get; }
Property Value
- string