Table of Contents

Class RegisterPersonalizationConditionTypeAttribute

Namespace
Kentico.PageBuilder.Web.Mvc.Personalization
Assembly
Kentico.Content.Web.Mvc.dll

Registers a personalization condition type definition to be used within Page builder feature.

public class RegisterPersonalizationConditionTypeAttribute : RegisterComponentAttribute, IPreInitAttribute
Inheritance
object
Attribute
RegisterPersonalizationConditionTypeAttribute
Implements
Inherited Members
Extension Methods

Constructors

RegisterPersonalizationConditionTypeAttribute(string, Type, string)

Creates an instance of the RegisterPersonalizationConditionTypeAttribute class.

public RegisterPersonalizationConditionTypeAttribute(string identifier, Type type, string name)

Parameters

identifier string

Unique identifier of the condition type definition.

type Type

Type of the registered condition.

name string

Name of the registered condition type.

Remarks

Make sure to provide unique identifier for the condition type 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.ConditionTypeName', e.g. 'Kentico.Personalization.IsInPersona'.

Properties

ControllerType

Type of custom controller responsible for condition parameters form.

public Type ControllerType { get; set; }

Property Value

Type

Hint

Hint displayed above the configuration form in the UI.

public string Hint { get; set; }

Property Value

string

Methods

PreInit()

Registers the condition type definition during application pre-initialization.

public override void PreInit()