-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Foundation 10, Foundation 12
-
2
Context
This is a follow-up of MGNLUI-4989
The previewDefinition can be seen as the successor of the Image provider definition.
It is defined as a property of the JCR data source definition.
The property previewDefinition currently must be of the type info.magnolia.ui.contentapp.preview.JcrPreviewDefinition.
Example
of a JCR data source definition with a previewDefinition:
datasource:
class: info.magnolia.ui.datasource.jcr.JcrDatasourceDefinition
workspace: contacts
includeProperties: true
previewDefinition:
nodeName: photo
allowedNodeTypes:
- mgnl:contact
- mgnl:folder
Depending on the size of the documentation for the preview definition,
we could add the previewDefinition part to the already existing page JCR data source definition or we create a distinct page (as we already have it for the Image provider definition).
For the properties table, see https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/contentapp/preview/JcrPreviewDefinition.java.
- depends upon
-
MGNLUI-5060 New framework: move filtering logic from wrapper back to data provider
- Closed
-
MGNLUI-5116 previewDefinition in jcr data source def. should be optional not mandatory
- Closed
- relates to
-
MGNLUI-4989 DOC: JcrDatasourceDefinition API
- Closed