Platform Explorer / Nuxeo Platform 6.0

Extension point renditionDefinitions

Documentation

Extension point to register rendition definitions. For instance, here is one defining a PDF rendition.

    <renditionDefinition enable="true" name="pdf">
        <label>label.rendition.pdf</label>
        <operationChain>blobToPDF</operationChain>
    </renditionDefinition>

Since 6.0 :

  • a new allowEmptyBlob tag has been added. Setting it's value to true will allow the rendition to be available even if the target Document does not contains a Blob.
  • a new visible attribute has been added. Setting it's value to false will allow the rendition to be hidden from the UI services.

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.rendition.service.RenditionDefinition

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-rendition-core-6.0.jar
    <extension point="renditionDefinitions" target="org.nuxeo.ecm.platform.rendition.service.RenditionService">
        <renditionDefinition enable="true" name="pdf">
          <label>label.rendition.pdf</label>
          <icon>/icons/pdf.png</icon>
          <contentType>application/pdf</contentType>
          <operationChain>blobToPDF</operationChain>
        </renditionDefinition>
      </extension>
  • nuxeo-template-rendering-core-6.0.jar
    <extension point="renditionDefinitions" target="org.nuxeo.ecm.platform.rendition.service.RenditionService">
        <renditionDefinition class="org.nuxeo.template.rendition.TemplateBasedRenditionProvider" enable="true" name="delivery">
          <icon>/icons/delivery.png</icon>
          <label>label.rendition.delivery</label>
        </renditionDefinition>
        <renditionDefinition class="org.nuxeo.template.rendition.TemplateBasedRenditionProvider" enable="true" name="webView">
          <icon>/icons/htmlView.png</icon>
          <label>label.rendition.webView</label>
        </renditionDefinition>
      </extension>