Is there a way with StartupPath to designate all resources? So if a user selects images it opens images/folder and if they browse for files it opens files/userfolder.
I have the system set up so that when a user logs in they can only view files in the folder that pertains to tha page they have access to. I would like ckFinder to open their folder by default, but it doesn't make much sense to designate Files:/userfolder as the startuppath and have the user select images and be dumped into the files folder or vice versa.
I have tried using * which defualts to images (last item in the array). I have tried StartupPath : 'Files:#Session.BaseFile#', 'Images:#Session.BaseFile# } which opens everything (file browser or Image browser) in images.
Thanks
I have the system set up so that when a user logs in they can only view files in the folder that pertains to tha page they have access to. I would like ckFinder to open their folder by default, but it doesn't make much sense to designate Files:/userfolder as the startuppath and have the user select images and be dumped into the files folder or vice versa.
I have tried using * which defualts to images (last item in the array). I have tried StartupPath : 'Files:#Session.BaseFile#', 'Images:#Session.BaseFile# } which opens everything (file browser or Image browser) in images.
Thanks
Re: StartupPath
You can pass different StatupPath to CKFinder depending on which site users is viewing, you can also point Images/Files resource type directly to the folder which user should access.
I'm not sure what exatcly is your folder structure, but for example suppose we have Files resource type and subfolders:
- Adam
- Mark
- Tom
If user Mark is only able to browse/upload files only from folder "Mark", the best soulition would be to point Files resource type directly to folder "Mark" instead of showing all folders to the user.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+