Hi!
When using CKFinder with CKEditor, CKFinder only uses resources of type "Images". However, when using CKFinder in standalone mode, I don't find a way to only use resources of a specific type (except setting $config['DefaultResourceTypes'], which I don't want to because different forms will take different resource types). Is there a way to do this?
- DM
When using CKFinder with CKEditor, CKFinder only uses resources of type "Images". However, when using CKFinder in standalone mode, I don't find a way to only use resources of a specific type (except setting $config['DefaultResourceTypes'], which I don't want to because different forms will take different resource types). Is there a way to do this?
- DM
Re: How to specify resource type in standalone mode?
Check out the Properties documentation. You can set StartupPath property which might be helpful in your situation.
Here's an explanation how it works in CKEditor (StartupPath is not used here):
When Image dialog box is opened, the following url is called:
note that "Type=Images" is added in the query string to instruct CKFinder to display just that resource type. At this moment there is no way to set the "Type" using CKFinder object (the_BuildUrl() function in ckfinder.js does not support this), you can add this functionality by yourself or wait for the next release.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+