Page 1 of 1

Export documents by category

PostPosted:Wed Jul 23, 2014 4:35 pm
by justulio
Is there any way to export documents by their categories? I mean I need a folder structure as catagories with documents in that structure.

I have tried the export, but it only gets categories as folder structure - no documents in it. I have also tried the Save to ZIP, but it only gets me one level of categories.
So is there any other way, some script I could run or something?

JD

Re: Export documents by category

PostPosted:Sat Jul 26, 2014 6:11 pm
by jllort
You should create a script for doing it. Basically recursivelly follow all categories tree, get document children and then export files from the document children results.

This url can be a good start for doing it:
http://wiki.openkm.com/index.php/Folders_deep
From the api http://doxygen.openkm.com/openkm/d9/d6d ... _1api.html you should use http://doxygen.openkm.com/openkm/de/de7 ... ument.html the method getContent