Hi
I'm building a room reservation system. Each room has a folder, where its pictures are saved. When a user edits a room he can upload new pics. For that I use CKFinder 2.1. Now I want that only the folder of this room is available (if necessary its parents can be displayed too). I haven't found out how to dynamically define, which folders are shown and which are hidden. Does anyone have an idea?
Thanks a lot for your help!
I'm building a room reservation system. Each room has a folder, where its pictures are saved. When a user edits a room he can upload new pics. For that I use CKFinder 2.1. Now I want that only the folder of this room is available (if necessary its parents can be displayed too). I haven't found out how to dynamically define, which folders are shown and which are hidden. Does anyone have an idea?
Thanks a lot for your help!

Re: Hide folders dynamically
Here the added code to the config file:
... config.baseUrl = "/"; // when a special path is required if ( IsDefined( "session.ckfinder.baseUrl" ) ) { config.baseUrl = session.ckfinder.baseUrl; } ... config.resourceType = arrayNew(1); // when a special path is required if ( IsDefined( "session.ckfinder.baseUrl" ) ) { config.resourceType[1] = structNew(); config.resourceType[1].name = 'Raum'; config.resourceType[1].url = config.baseUrl; config.resourceType[1].directory = config.baseDir; config.resourceType[1].maxSize = 0; config.resourceType[1].allowedExtensions = 'bmp,gif,jpeg,jpg,png'; config.resourceType[1].deniedExtensions = ''; } // Default settings else { config.resourceType[1] = structNew(); config.resourceType[1].name = 'Files'; config.resourceType[1].url = config.baseUrl & 'dateien'; config.resourceType[1].directory = config.baseDir & 'dateien'; config.resourceType[1].maxSize = 0; config.resourceType[1].allowedExtensions = '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip'; config.resourceType[1].deniedExtensions = ''; config.resourceType[2] = structNew(); config.resourceType[2].name = 'Images'; config.resourceType[2].url = config.baseUrl & 'image'; config.resourceType[2].directory = config.baseDir & 'image'; config.resourceType[2].maxSize = 0; config.resourceType[2].allowedExtensions = 'bmp,gif,jpeg,jpg,png'; config.resourceType[2].deniedExtensions = ''; /* config.resourceType[3] = structNew(); config.resourceType[3].name = 'Flash'; config.resourceType[3].url = config.baseUrl & 'flash'; config.resourceType[3].directory = config.baseDir & 'flash'; config.resourceType[3].maxSize = 0; config.resourceType[3].allowedExtensions = 'swf,flv'; config.resourceType[3].deniedExtensions = '';*/ } ...PS: I use the Coldfusion version