Enables mediagallery or group selection using type-ahead search. Represents selections as a querystring: when groups are selected the format is Group=ID&IncludeSubGroups=True, when mediagallerys are selected the format is MediaGallery=ID.
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="core_v2_galleryLookup" enableCurrentMediaGallery="true" maxMediaGallerySelections="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_galleryLookup", Options = new NameValueCollection { { "enableCurrentMediaGallery", "true" }, { "maxMediaGallerySelections", "1" }, { "maxGroupSelections", "1" }, { "enableGroupSelection", "true" }, { "enableCurrentGroup", "false" }, { "parentGroupId", "" }, { "format", "query" } } };
Options
Name | Description | Default | Options |
---|---|---|---|
enableCurrentMediaGallery | When true, enables current mediagallery selection (represented with an ID of -1). | true | true, false |
maxMediaGallerySelections | The number of mediagallerys 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 mediagallerys and groups in the specified group can be selected. | ||
format | When set to 'query', all selected groups/ mediagallerys will be represented with their own query keys. When set to 'csv', all selected groups/mediagallerys are comma-separated in a shared query key. | query | query, csv |