Platform Explorer / Nuxeo Platform 2021.26

Component org.nuxeo.ecm.platform.rendition.publish.contrib

Resolution Order

The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.


XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.rendition.publish.contrib">

  <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
    <defaultRendition reason="publish">
      <script language="JavaScript">
        function run() {
          if (Document.getType() == "File" || Document.getType() == "Note") {
            return 'pdf';
          } else if (Document.hasSchema("file")) {
            return 'mainBlob';
          return null;