当我想导入带有附件的文件时,我对Nuxeo有一个问题。采用nuxeo CSV的参数是必要的。例如:他们为标题定义了"dc: title“,为描述定义了"dc: description”。
下面是它的工作原理:
"name","type","dc:title","dc:description","file:content","dc:creator"
"nuxeo-csv-userdoc","File","Nuxeo CSV User documentation","This is the user guide for Nuxeo CSV","C:/../nuxeo-csv-userdoc.pdf","user"我的文件不同,我想选择我的参数。例如,我有一个日期,协会名称,供应商,ID...which与建议的Nuxeo不同。你知道怎么做吗。
"Type","Title","Society","Year","ID","Path","supplier"
"RAPPORT","CENTRIFUGAL PUMPS","EMTECH-E LIST OF PARTS","2005","1767","file.pdf","XY"谢谢
发布于 2018-03-29 21:09:02
您必须将导入映射到您定义的自定义类型。你读过https://doc.nuxeo.com/nxdoc/how-to-enable-csv-import-on-a-custom-document-type/吗?
您可能希望在您定义的文档类型上启用CSV import,无论是在Studio中还是使用一些代码。下面是如何做到这一点的。
(...)
<require>org.nuxeo.ecm.platform.actions</require> <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"> <filter id="importFile" append="true"> <rule grant="true"> <permission>AddChildren</permission> <type>YourCustomTypeID</type> </rule> </filter> </extension>
https://stackoverflow.com/questions/49550937
复制相似问题