How to force the "intelligent import with metadata" ?

Hello,

When I drag'n drop some files into Nuxeo, how can I force the “intelligent import with metadata” behaviour ?

I want to force this screen to appear everytime :

capture

Thank you

0 votes

1 answers

2574 views

ANSWER

any idea ?
01/02/2013



Hi,

The Drag&Drop system will propose all import actions that have been defined active in the given context. This should be explained in the doc : http://doc.nuxeo.com/x/c4ao

These actions are defined in an XML contribution : http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewContribution/org.nuxeo.ecm.automation.features.upload.jsf.contrib--actions

If you are interested in the configuration for the Drag&Drop on the main ContentView zone, the 2 default actions are :


<action help="desc.smart.import.file" id="Chain.FileManager.ImportInSeam" label="label.smart.import" link="" order="10">
    <category>ContentView</category>
    <filter-id>create</filter-id>
</action>
<action help="desc.smart.import.with.md" id="Chain.FileManager.ImportWithMetaDataInSeam" label="label.smart.import.with.md" link="/nuxeo/dndFormCollector.faces?schema=dc&amp;layout=dndEdit" order="30">
    <category>ContentView</category>
    <filter-id>create</filter-id>
</action>

So, if you want the ImportWithMetaData to be “by default”, the best option may be to simply disable the Chain.FileManager.ImportInSeam action, so that Chain.FileManager.ImportWithMetaDataInSeam becomes the default …

Hope this helps.

Tiry

0 votes



Thanks a lot for your answer, I actually managed to do it with :

&lt;extension target=&quot;org.nuxeo.ecm.platform.actions.ActionService&quot; point=&quot;actions&quot;&gt;
  &lt;action help=&quot;desc.smart.import.file&quot; id=&quot;Chain.FileManager.ImportInSeam&quot; label=&quot;label.smart.import&quot; link=&quot;&quot; order=&quot;10&quot; enabled=&quot;false&quot;&gt;
    &lt;category&gt;ContentView&lt;/category&gt;
    &lt;filter-id&gt;create&lt;/filter-id&gt;
  &lt;/action&gt;
&lt;/extension&gt;

Have a nice day

01/11/2013