A Dimension Selector enables a content administrator to specify a dimension by name.
Note
The Dimension Selector communicates with the MDEX Engine. In order to enable the Dimension Selector, ensure that you have enabled communication between Experience Manager and the MDEX Engine.
To add a Dimension Selector:
Insert an
editors/DimensionSelectorEditor
element withineditors/DefaultEditorPanel
.Specify additional attributes for the editor:
Attribute Description propertyName
Required. The name of the string property that represents the dimension name. This property must be declared in the same template as the Dimension Selector. idProperty
Required. The name of the string property that represents the dimension id. This property must be declared in the same template as the Dimension Selector. enabled
If set to false
, this attribute makes the property read-only so that the value of the property displays in the Content Details Panel in Experience Manager, but cannot be edited. Use this option only if you specify a default value in the definition of the dimension name and dimension ID properties. Editors are enabled by default.
The following shows an example of a template that includes a dimension selector:
{
"@description": "${template.description}",
"@group": "Navigation",
"ecr:createDate": "2016-09-12T17:33:58.404+05:30",
"@thumbnailUrl": "thumbnail.jpg",
"ecr:type": "template",
"defaultContentItem": {
"lessLinkText": "Show Less Refinements...",
"numRefinements": "10",
"@name": "Dimension Navigation",
"dimensionId": "",
"moreLinkText": "Show More Refinements...",
"maxNumRefinements": "200",
"sort": "default",
"showMoreLink": false,
"dimensionName": "" },
"editorPanel": {
"editor": "editors/DefaultEditorPanel",
"children": [
{
"editor": "editors/DimensionSelectorEditor",
"idProperty": "dimensionId",
"propertyName": "dimensionName",
"label": "${property.dimensionName.label}",
"enabled": true
},
<!-- additional elements omitted from this example -->
]
},
"typeInfo": {
"boostRefinements": {"@propertyType": "List"},
"buryRefinements": {"@propertyType": "List"},
"dimensionId": {"@propertyType": "String"},
"dimensionName": {"@propertyType": "String"},
"lessLinkText": {"@propertyType": "String"},
"maxNumRefinements": {"@propertyType": "String"},
"moreLinkText": {"@propertyType": "String"},
"numRefinements": {"@propertyType": "String"},
"showMoreLink": {"@propertyType": "Boolean"},
"sort": {"@propertyType": "String"}
}
}