Page 1 of 1

How to open folder if know folder's uuid using javascript

Posted: Mon Aug 17, 2020 6:35 am
by nhan@intra.co.kr
Suppose I'm in PDF.js viewer javascript (I have a customized PDF.js version). How to call function to open a OpenKM folder when know folder's uuid.

Re: How to open folder if know folder's uuid using javascript

Posted: Fri Aug 21, 2020 7:29 am
by jllort
Take a look at this documentation section https://docs.openkm.com/kcenter/view/ok ... t-api.html, you can open any kind of node ( folder, document, etc... ). I suggest you use this one jsOpenPathByUuid

Finally, remember the preview feature is in a Iframe, that means the javascript method is exposed from the parent. To get working the call you need:

Code: Select all

parent.jsOpenPathByUuid(uuid);
or maybe parent.parent ( should check )