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
-
objectAttributeRegisterPersonalizationConditionTypeAttribute
- 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
identifierstringUnique identifier of the condition type definition.
typeTypeType of the registered condition.
namestringName 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()