Enables article selection using type-ahead search. Represents selections as a querystring or comma-separated values.
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="articles_v1_articleLookup" enableCurrent="true" maxSelections="1" format="query" collectionPropertyId="" />
Plugin Configuration C#
var property = new Property
{
Id = "propertyId",
LabelResourceName = "nameResource",
DescriptionResourceName = "descriptionResource",
DataType = "custom",
Template = "articles_v1_articleLookup",
Options = new NameValueCollection
{
{ "enableCurrent", "true" },
{ "maxSelections", "1" },
{ "format", "query" },
{ "collectionPropertyId", "" }
}
};Options
| Name | Description | Default | Options |
|---|---|---|---|
| enableCurrent | When true, enables curent article selection (represented with an ID of 00000000-0000-0000-0000-000000000000). | true | true, false |
| maxSelections | The number of articles that can be selected. | 1 | |
| format | Identifies whether to serialize selected values as a querystring (Article=ID&Article=ID&...) or comma-seperated list (ID,ID,ID,..). | query | query, csv |
| collectionPropertyId | The ID of a property selecting a single article collection by ID in which to look for articles. |