disable PDF rendition

Hello, I try to disable a PDF rendition:

<required>org.nuxeo.ecm.platform.rendition.contrib</required>

<extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
  point="renditionDefinitions">
  <renditionDefinition name="pdf" enable="false" />
</extension>

As a result of this is the PDF rendition without icon. In a log is:

2015-02-13 17:52:21,027 INFO  [org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl] Registering rendition with name: pdf
2015-02-13 17:52:21,128 INFO  [org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl] Overriding rendition with name: pdf
2015-02-13 17:52:21,201 INFO  [org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl] Registering rendition with name: pdf

When I change the XML to:

  <renditionDefinition name="pdf" enabled="false" />

the PDF rendition is shown normally, and in the log file is only:

2015-02-13 17:52:21,027 INFO  [org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl] Registering rendition with name: pdf

How can this rendition be removed ?

Adam

1 votes

0 answers

2197 views

ANSWER

It's &lt;require&gt;, not &lt;required&gt;. And it's enabled=&quot;false&quot;, not enable.

We'll fix the doc in Explorer that mentions enable.

02/16/2015

Thanks. It works.
02/17/2015