The Dimension List editor enables a content administrator to select a list of dimensions from the application data set. The templates included with the reference application use this editor to specify which dimensions should be available for display in a dimension search auto-suggest panel or a dimension search results panel.
Note
The Dimension List editor communicates with the MDEX Engine. In order to enable the editor, ensure that you have enabled communication between Experience Manager and the MDEX Engine.
To add a Dimension List editor:
The following shows an example of a template that includes a dimension list editor:
{
"@description": "${template.description}",
"@group": "MainContent",
"ecr:createDate": "2016-09-12T17:33:56.937+05:30",
"@thumbnailUrl": "thumbnail.png",
"ecr:type": "template",
"defaultContentItem": {
"@name": "Dimension Search Results",
"maxResultsPerDimension": "3",
"showCountsEnabled": false,
"displayImage": true,
"maxResults": "8",
"title": "We also found the following Categories:"
},
"editorPanel": {
"editor": "editors/DefaultEditorPanel",
"children": [
<!-- additional elements omitted from this example -->
{
"editor": "editors/DimensionListEditor",
"propertyName": "dimensionList",
"label": "${property.dimensionList.label}",
"enabled": true
},
{
"editor": "editors/NumericStepperEditor",
"minValue": 1,
"propertyName": "maxResultsPerDimension",
"label": "${property.maxResultsPerDimension.label}"
}
]
},
"typeInfo": {
"dimensionList": {"@propertyType": "List"},
"displayImage": {"@propertyType": "Boolean"},
"maxResults": {"@propertyType": "String"},
"maxResultsPerDimension": {"@propertyType": "String"},
"showCountsEnabled": {"@propertyType": "Boolean"},
"title": {"@propertyType": "String"}
}
}