Hi.. Can I modify ResourceType.Url in configuration dynamicaly , without modify baseUrl ? I tought of making my own Config class devived from CKFinder.Settings.ConfigFile to configure these paths. I know I'm too far. How Can I access Ressources of CKFinder from my project ?
thank you.
thank you.
Re: Accessing CKFinder resources
You don't have to modify the baseUrl each time you want to change the ResourceType.Url. You can simply change the resource type directory (you don't have to use the baseDir variable in it).
Could you explain with more details what do you mean: "access Ressources of CKFinder from my project"?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Accessing CKFinder resources
in the OnLoad event of my pages
I want to know where are these settings...
thank you.
Re: Accessing CKFinder resources
For example:
Another idea: use sessions to trace the section that user is currently viewing and define dynamically in config file only those three resource types, that he needs to see at the moment.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Accessing CKFinder resources
Re: Accessing CKFinder resources
i know this is an old conversation, but just for anyone googling here in later years: here's an explicit (PHP) example of one possible way to implement wiktor's suggestion to trace the section via session.
1) be sure to turn on session at the top of the /ckfinder/ckfinder.php file:
2) in your calling .php script (the one with the embedded ckeditor/ckfinder), set 2 session variables (one for the internal filesystem location, and the other for its external URL) to "remember" which section you want the CKfinder to focus on. you can name these variables whatever you want. an example would be:
3) now in the /ckfinder/config.php file, pick up these values from the session, and assign them dynamically (i.e., at run-time, differently for each user):
...
Now your CKfinder will automatically be pointed to a base url and directory of only 1 of your 10 sections (assuming you still have images, files, and flash directories underneath each section).
hope that helps..