Enables blog or group selection using type-ahead search. Represents selections as a querystring: when groups are selected the format is Group=ID&IncludeSubGroups=True, when blogs are selected the format is Blog=ID.
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="core_v2_blogLookup" enableCurrentBlog="true" maxBlogSelections="1" maxGroupSelections="1" enableGroupSelection="true" enableCurrentGroup="false" parentGroupId="" format="query" />
Plugin Configuration C#
var property = new Property
{
Id = "propertyId",
LabelResourceName = "nameResource",
DescriptionResourceName = "descriptionResource",
DataType = "custom",
Template = "core_v2_blogLookup",
Options = new NameValueCollection
{
{ "enableCurrentBlog", "true" },
{ "maxBlogSelections", "1" },
{ "maxGroupSelections", "1" },
{ "enableGroupSelection", "true" },
{ "enableCurrentGroup", "false" },
{ "parentGroupId", "" },
{ "format", "query" }
}
};Options
| Name | Description | Default | Options |
|---|---|---|---|
| enableCurrentBlog | When true, enables current blog selection (represented with an ID of -1). | true | true, false |
| maxBlogSelections | The number of blogs that can be selected. | 1 | |
| maxGroupSelections | The number of groups that can be selected. | 1 | |
| enableGroupSelection | When enabled, groups can be selected. Group selections will be in the format Group=ID where ID is the integer ID of the group. | true | |
| enableCurrentGroup | When true, enables current group selection (represented with an ID of -1). | false | |
| parentGroupId | When set to a group's integer identifier, only blogs and groups in the specified group can be selected. | ||
| format | When set to 'query', all selected groups/ blogs will be represented with their own query keys. When set to 'csv', all selected groups/blogs are comma-separated in a shared query key. | query | query, csv |