Class VisitorGroupCriterionAttribute
Attribute used to declaratively define visitor group criterion definitions.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class VisitorGroupCriterionAttribute : ServicePlugInAttributeBase, _Attribute, IServiceConfiguration, IVisitorGroupCriterionDefinition
Constructors
VisitorGroupCriterionAttribute()
Initializes a new instance of the VisitorGroupCriterionAttribute class.
Declaration
public VisitorGroupCriterionAttribute()
Remarks
You must use named parameters to initialize the properties.
Properties
Category
The category of the plugin (currently only supported by Report and Visitor Group Criterion).
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Description
Description of the plugin
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | The description. |
Remarks
If a LanguagePath has been defined, the return value for Description will be the translated text from LanguagePath + "/description"
DisplayName
The display name for the plugin.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string with the display name. |
Remarks
If a LanguagePath has been defined, the return value for DisplayName will be the translated text from LanguagePath + "/displayname"
LanguagePath
Path to node in language files where translation can be found.
Declaration
public string LanguagePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Set this property to the path of the XML element that contains the displayname and description elements in one of your language files (an xml file in the /lang directory.)
Examples
For a LanguagePath with the value "/myshop/plugin/ShopPluginTree/" the XML should look something like this:
<languages>
<language name="English" id="EN">
<myshop>
<plugin>
<ShopPluginTree>
<displayname>My shop</displayname>
<description>Description of shopping tab</description>
</ShopPluginTree>
</plugin>
</myshop>
</language>
</languages>
ScriptUrl
Gets and sets the url relative the shell module to the resource
Declaration
public string ScriptUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | The URL relative the UI directory |