11-23-2015 10:48 AM
I have a custom document type In a specific folder, it is defined as the default doctype so that drag & drop creates such a document I would like to be able to use the drag & drop import with metadata Overriding the Chain.FileManager.ImportWithMetaDataInSeam action works fine
<action id="Chain.FileManager.ImportWithMetaDataInSeam"
link="/nuxeo/dndFormCollector.faces?schema=fiche_navette_idex&layout=dndFicheNavIdexEdit%40create"
order="30" label="Fiche Navette IDEX"
help="schema Fiche Navette IDEX">
<category>ContentView</category>
<filter-id>create</filter-id>
<properties>
<property name="chainId">FileManager.ImportWithMetaDataInSeam</property>
<property name="layout">dndFicheNavIdexEdit@create</property>
</properties>
</action>
but I would like to have it enabled only for that folder and it seems the action cannot be given another id.
11-24-2015 03:44 AM
I finally made it, but this solution seems quite silly to me : I gave the action a custom name (FileManager.ImportIdexWithMetaDataInSeam) and created an homonymous chain
NB : calling the action / chain ImportIdexWithMetaDataInSeam instead of Chain.FileManager.ImportIdexWithMetaDataInSeam fails
the sole operation being ... Chain.FileManager.ImportWithMetaDataInSeam
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<action id="Chain.FileManager.ImportIdexWithMetaDataInSeam"
link="/nuxeo/dndFormCollector.faces?schema=fiche_navette_idex&layout=dndFicheNavIdexEdit%40create"
order="30" label="Fiche Navette IDEX"
help="schema Fiche Navette IDEX">
<category>ContentView</category>
<filter-id>create</filter-id>
<filter>
<rule grant="true">
<type>ws_prog_idex</type>
</rule>
</filter>
<properties>
<property name="chainId">FileManager.ImportIdexWithMetaDataInSeam</property>
<property name="layout">dndFicheNavIdexEdit@create</property>
</properties>
</action>
</extension>
<extension point="chains"
target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
<chain id="FileManager.ImportIdexWithMetaDataInSeam">
<operation id="Seam.RunOperation">
<param type="string" name="id">Chain.FileManager.ImportWithMetaDataInSeam</param>
</operation>
</chain>
</extension>
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.