Hello, I'm looking for some help about importing Document with attached files like Notes Document.
When you create a note, you have the possibility of uploading and attaching files like pictures. It is also possible to make links to these files. When you export these kind of files, the content of your note is exported and the attached files too. So if you take the time to have a look on the document xml representing your note, you’ll see that the url of the image is based on the document id. <?xml version="1.0" encoding="UTF-8"?> <document repository="default" id="*6c3ba87f-92fe-45d1-bce5-d2d92f1c2412*"> <system> <type>Note</type> <path>/domain/workspaces/test-creation/hfhfg</path> <lifecycle-state>project</lifecycle-state> <lifecycle-policy>default</lifecycle-policy> <access-control> <acl name="inherited"> <entry principal="administrators" permission="Everything" grant="true"/> <entry principal="Administrator" permission="Everything" grant="true"/> <entry principal="members" permission="Read" grant="true"/> <entry principal="members" permission="Version" grant="true"/> </acl> </access-control> </system> <schema xmlns="http://www.nuxeo.org/ecm/schemas/files/" name="files"> <files> <item xmlns=""> <file> <encoding></encoding> <mime-type>image/jpeg</mime-type> <filename>2009-04-26t211507z_01_apae53p1n1900_rtroptp_2_ofrwr-grippe-porcine-canada-20090426.jpg</filename> <data>26c4cdc6.blob</data> </file> <filename>2009-04-26t211507z_01_apae53p1n1900_rtroptp_2_ofrwr-grippe-porcine-canada-20090426.jpg</filename> </item> <item xmlns=""> <file> <encoding></encoding> <mime-type>image/jpeg</mime-type> <filename>400_F_9787603_0qofx0u3elLb1T4g3zb4kuMfKB8wzyFp.jpg</filename> <data>9f2af9af.blob</data> </file> <filename>400_F_9787603_0qofx0u3elLb1T4g3zb4kuMfKB8wzyFp.jpg</filename> </item> </files> </schema> <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore"> … </schema> <schema xmlns="http://www.nuxeo.org/ecm/schemas/note/" name="note"> <transform_result/> <stylesheet_filename/> <stylesheet_content/> <mime_type/> <note>ljcljkwcxljklxcwcxw<img src="http://localhost:8080/nuxeo/nxfile/default/*6c3ba87f-92fe-45d1-bce5-d2d92f1c2412*/files:files/1/file/400_F_9787603_0qofx0u3elLb1T4g3zb4kuMfKB8wzyFp.jpg" alt="" /></note> </schema> My problem is that when i make an import of this document, the document id change, so even if my pictures are still attached to my document, the url of my link inside the html text of the note is not correct anymore. Do you have any suggestion for getting around this problem ? Best regards, -- Posted by "ecmUser" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3122#9257> _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
