Forum OpenACS Development: Re: Issues importing data into XoWiki

Collapse
Posted by Gustaf Neumann on
Dear Frank,

not sure what you expect from the script. The sample script (which you used as source and was modified by you) is most likely from http://alice.wu-wien.ac.at:8000/xowiki-doc/#import-export-from-other-sources

This script is written to be run outside of OpenACS from the shell script level. Within OpenACS, there would be no need to load tdom, serializer, etc. Notice that the script defines the class ::xowiki::Page, if you do this from within OpenACS, the xowiki pages on the connection thread will stop working. The docpath was a kind of a safty measure to avoid running from within OpenACS.

Anyhow, if you want to load HTML files into xowiki, adjust the paths, run the script, save the output to a file and load this file via "import" in xowiki/admin. In most cases, you will like to cleanup the pages to remove some elements, or to adjust links, etc. I would recommend to make the cleanup via tdom as well (in the foreach loop). This script is just a skeleton to start with.

hope this helps,
-gustaf neumann

Collapse
Posted by Frank Bergmann on
Hi Gustaf,

Thanks a lot for your reply!

Cheers!
Frank