I created a new document type in Nuxeo Studio. When I use the Drag and Drop the imported file does not use the new Document Type, but the old. How do to make this new document type as default?
Say you have document types SampleCustomPicture, CustomVideo, and CustomAudio -- under "Projects>Advanced Settings>XML Extensions" do "+New" and create an extension with this content:
SampleCustomPicture
CustomVideo
CustomAudio
<require>org.nuxeo.ecm.platform.picture.filemanager.contrib</require> <require>org.nuxeo.ecm.platform.video.filemanager.contrib</require> <require>org.nuxeo.ecm.platform.audio.filemanager.contrib</require> <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"> <plugin name="Imageplugin" merge="true" docType="SampleCustomPicture" /> </extension> <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"> <plugin name="VideoImporter" merge="true" docType="CustomVideo" /> </extension> <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"> <plugin name="AudioImporter" merge="true" docType="CustomAudio" /> </extension>
https://gist.github.com/tingletech/7574407
I tell me the same question