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