Hello All,
I host several coldfusion websites on a server, each requiring CKEditer functionality with CKFinder integrated; I currently have it set it up so that only one copy of CKEditor and CKFinder is required (rather than having each website with its own copy); using the JS CKEditor installation and the Coldfusion CKFinder installation. So, for instance the paths from the root of my server to CKEditor/CKFinder are as such:
rootstuff/ckeditor
rootstuff/ckfinder
and the path two the adminstration sections of two test websites (where the editors are used), as follows:
rootstuff/MySite1/administration/
rootstuff/MySite2/administration/
so that the editor pages in the admin reach back two directories to make use of the CKEditor and CKFinder. This works dandy, but the problem is that with the current setup the administrator of one website would be able to see the uploaded images of all the other websites as well (because its all going in rootstuff/ckfinder/userfiles/images). This is obviously bad. What I would like to happen is for the CKFinder to store each websites images and such in different subdirectories (like rootstuff/ckfinder/MySite1/userfiles/images for example) so that each website administrator sees only his "sandbox" when utilizing the CKFinder. I am having great difficulty, however, figuring out how CKFinder can discern which website (subdirectory) is currently "calling" it.
I gather that I would have to set some kind of session variable in the CKFinder application file based on a session variable in the Websites subdirectory Application file (with the website name or some such) but I am unclear how to do such a thing or if there is a better way. I am also open to using the JS CKFinder install instead of the Coldfusion one if that makes things any easier. Any help or suggestions anyone could offer would be extremely appreciated. Thanks in advance.
I host several coldfusion websites on a server, each requiring CKEditer functionality with CKFinder integrated; I currently have it set it up so that only one copy of CKEditor and CKFinder is required (rather than having each website with its own copy); using the JS CKEditor installation and the Coldfusion CKFinder installation. So, for instance the paths from the root of my server to CKEditor/CKFinder are as such:
rootstuff/ckeditor
rootstuff/ckfinder
and the path two the adminstration sections of two test websites (where the editors are used), as follows:
rootstuff/MySite1/administration/
rootstuff/MySite2/administration/
so that the editor pages in the admin reach back two directories to make use of the CKEditor and CKFinder. This works dandy, but the problem is that with the current setup the administrator of one website would be able to see the uploaded images of all the other websites as well (because its all going in rootstuff/ckfinder/userfiles/images). This is obviously bad. What I would like to happen is for the CKFinder to store each websites images and such in different subdirectories (like rootstuff/ckfinder/MySite1/userfiles/images for example) so that each website administrator sees only his "sandbox" when utilizing the CKFinder. I am having great difficulty, however, figuring out how CKFinder can discern which website (subdirectory) is currently "calling" it.
I gather that I would have to set some kind of session variable in the CKFinder application file based on a session variable in the Websites subdirectory Application file (with the website name or some such) but I am unclear how to do such a thing or if there is a better way. I am also open to using the JS CKFinder install instead of the Coldfusion one if that makes things any easier. Any help or suggestions anyone could offer would be extremely appreciated. Thanks in advance.

Re: Sandboxed Subdirectories (userfiles/mysite1/images etc.)
Re: Sandboxed Subdirectories (userfiles/mysite1/images etc.)
viewtopic.php?f=10&t=22552
Session["ckfinder_baseUrl"]["MySite1"]
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+