• Get folder structure

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #17356  by shaardu
 
Hi,

I tried getting folder structure to be written in a txt file but it is not that accurate or proper. Can anyone tel me which is the easiest way to get entire folder structure at runtime? I couldnt find folderarray[] class in5.1.10....what is the solution? thanks
 #17363  by jllort
 
For what I understand you want some type of report ( in txt file ) to show all folder hicheracy, is that ?
 #17375  by jllort
 
You need some java skill for doing it. The more simply way will be create some script http://wiki.openkm.com/index.php/Scripting

And here are some classes you should use http://doxygen.openkm.com/5.1.x/d9/d6d/ ... _1api.html really you should be interested on http://doxygen.openkm.com/5.1.x/d0/dd8/ ... older.html and with method getchilds http://doxygen.openkm.com/5.1.x/d0/dd8/ ... a0bf6ecd02

The logic will be Get okm:root childs OKMFolder.getInstance().getChilds(token, "/okm:root") and for each child execute the method recursively
 #17401  by shaardu
 
Thanks for this but I found another way! I finished last week...thanks a lot..
 #18284  by pavila
 
Please, share the "other way" because some forum user would benefit it.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.