-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 8.2
-
Fix Version/s: None
-
Component/s: Explorer
It says that the registration should be done like:
<plugin class="com.example.MyFileImporterImplementationClass" enabled="true" name="myCustomFileImporter" order="30"> <filter>text/plain</filter> <doctype>MyCustomDoctype</doctype> </plugin>
Looking at the UT (https://github.com/nuxeo/nuxeo/blob/434093e97825bf7e02578efd428e71f588704f20/nuxeo-services/nuxeo-platform-filemanager-core/src/test/resources/nxfilemanager-test-contribs.xml)
The docType should be declared at the plugin level, not as a child:
<plugin name="pluginWithDocType" class="org.nuxeo.ecm.platform.filemanager.FooPlugin" docType="File"> <filter>text/plain</filter> <filter>text/rtf</filter> </plugin>
The method explained in the doc does not work.