[opencms-dev] Using Import File from Server utility in OpenCms 6.0
Michael Emmerich
m.emmerich at alkacon.com
Fri Sep 16 09:28:06 CEST 2005
If you want to import a large number of files 1:1 into OpenCms (i.e.
they must be imported unchanged), I would never try to use the DB-
Import feature and start to modify the manifest.xml by hand.
Take a look at the synchronization feature, with this one you can
synchronize a folder in your server filesystem with a folder of the
OpenCms VFS. I think this is much easier to do this way.
Regards,
Michael Emmerich
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
Hufford, Brian schrieb:
> Hi All,
> I am attempting to bulk import some data from a preexisting DB. I have created XML Content (xsd) for these items and exported/formatted them according to the xsd guidelines.
> I found some tips elsewhere on the web that I should be able to do this using the DB import utility.
> I exported a few items from my VFS and took a look at the manifest.xml file that is generated as part of the export. The tip I found told me to modify this manifest and put it in a zip file along with my xml files for the import. However, when I ran the import it appeared to finish (no error messages), but no details either, nothing.
> Has anyone attempted this before...or can someone show me what a well formed manifest.xml for an import would look like?
> The export manifest had nodes that looked like this:
>
> <file>
> <source>sites/MySite/Geography/City/SanFrancisco.html</source>
> <destination>sites/MySite/Geography/City/SanFrancisco.html</destination>
> <type>XmlCity</type>
> <uuidresource>58684415-2171-11da-b445-3323d17f74a9</uuidresource>
> <datelastmodified>Wed, 14 Sep 2005 18:22:29 GMT</datelastmodified>
> <userlastmodified>Admin</userlastmodified>
> <datecreated>Fri, 09 Sep 2005 20:36:05 GMT</datecreated>
> <usercreated>Admin</usercreated>
> <flags>0</flags>
> <properties/>
> <accesscontrol/>
> </file>
>
> I assume I would just replace these <file> nodes with new ones representing my files to be imported. However, the uuidresource, datelastmodified, userlastmodified, datecreated, usercreated attributes seem to be irrelevant while loading "new" files.
> Any help would be much appreciated.
> thanks!
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
--
Alkacon Software
An der Wachsfabrik 13
50996 Koeln, DE
Tel: +49 (0)2236 382614
Fax: +49 (0)2236 382620
Email m.emmerich at alkacon.com
More information about the opencms-dev
mailing list