I'm evaluating CKFinder for our company using Coldfusion 8. The integration worked fine and I am able to use session variables from our application inside the config.cfm of CKFinder.
I use a folder structure like this:
/project_data/projectA/admin/teamA/teamB
/project_data/projectB/admin/teamA/teamB
The baseurl for admins of projectA is set to "/project_data/projectA/admin/". So they can access their own files and can also go into the teamA and teamB subfolder to manipulate files.
The baseurl for teamA members is set to "/project_data/projectA/admin/teamA" accordingly. So they can only access teamA and teamB data.
My problem: The admin can enter his folder and is able to upload files and use the auto-generated ressource-folders, but the teamA folder is not visible for him. Same case for teamA members who cannot see the teamB subfolder.
Is there any restriction I missed in the configuration or is the use of manually generated subfolders just not possible?
Miko
I use a folder structure like this:
/project_data/projectA/admin/teamA/teamB
/project_data/projectB/admin/teamA/teamB
The baseurl for admins of projectA is set to "/project_data/projectA/admin/". So they can access their own files and can also go into the teamA and teamB subfolder to manipulate files.
The baseurl for teamA members is set to "/project_data/projectA/admin/teamA" accordingly. So they can only access teamA and teamB data.
My problem: The admin can enter his folder and is able to upload files and use the auto-generated ressource-folders, but the teamA folder is not visible for him. Same case for teamA members who cannot see the teamB subfolder.
Is there any restriction I missed in the configuration or is the use of manually generated subfolders just not possible?
Miko
Re: manually added subfolders are not visible
If baseUrl for admin is set to "/project_data/projectA/admin/" and you are using the default configuration for resource types, what you see in CKFinder is actually:
"/project_data/projectA/admin/files/" (Files)
"/project_data/projectA/admin/images/" (Images)
"/project_data/projectA/admin/flash/" (Flash)
So: "/project_data/projectA/admin/teamA"
indeed might be found in the "Files" resource type, because it does not belong to "/project_data/projectA/admin/files/".
To change this, simply open config.cfm and find:
change it to:
(please check it on the development site, as you will change the paths).
A few words of explanation. baseurl / basedir are just helper variables. You are free to create as many resource types as needed, that can point to any location you want, without using helper variables.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: manually added subfolders are not visible
I will try it out. Somehow I didn't get the idea, that all resources must be defined and I thought, if a subfolder existed physical it will automatically be included in the folder structure of CKFinder.
Re: manually added subfolders are not visible
"/project_data/projectA/admin/files/"
"/project_data/projectA/admin/images/"
etc. (as explained above). In the scenario like yours indeed it could be quite counterintuitive.
If anything is still unclear, let me know.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+