-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.3
-
Component/s: Renditions
-
Release Notes Description:
-
Epic Link:
-
Sprint:nxGang Sprint 9.3.7, nxGang Sprint 9.3.8
-
Story Points:2
In the same way we are able to easily customize the download service's permission extension point (described in https://doc.nuxeo.com/nxdoc/file-download-security-policies/), we'd like an extension point where it would be possible to dynamically evaluate a default rendition to be generated for a given document. This evaluation will be based on the JVM Nashorn javascript engine and look like:
<extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService" point="defaultRendition"> <defaultRendition name="nxDefaultRendition"> <script language="JavaScript"> function run() { if (Reason == 'download') { if (Document.getType() == "File") { return 'mainBlob'; } else if (Document.getType() == 'Folder') { return ''; } else { return 'xmlExport'; } } else { return ''; } } </script> </defaultRendition> </extension>
This default rendition will then be used for bulk downloading documents. this way, users can easily customize how a document type can be rendered within the context of a bulk download. For instance, within a zip resulting from a bulkd download, documents without any blob attached can be xml rendered, Picture documents will have their main blob rendered, Note will be rendered as PDF, etc.
- is related to
-
NXDOC-1474 Update the Renditions documentation page
- Open
-
NXP-23185 Add ability to use BlobHolder adapter by factory name
- Resolved
- is required by
-
NXP-24434 Configure document type main publish rendition
- Resolved