Goal is to set baseurl based on local settings per page per user.
Using Session varibles in config.ascx is NOT an option as our corp is using some customized session provider.
I am using SetupFCKeditor of CKFinder.FileBrowser to connect FCKEditor to CKFinder and I dont see anywhere you could set baseURL through Filebrowser object.... I also see CKFinder.Settings.ConfigFile class which has baseURL property BUT I couldnt find any documentation on using that.....
any help is really appreciated......
thanks
Bob
Using Session varibles in config.ascx is NOT an option as our corp is using some customized session provider.
I am using SetupFCKeditor of CKFinder.FileBrowser to connect FCKEditor to CKFinder and I dont see anywhere you could set baseURL through Filebrowser object.... I also see CKFinder.Settings.ConfigFile class which has baseURL property BUT I couldnt find any documentation on using that.....
any help is really appreciated......
thanks
Bob
Re: How to set BaseUrl from ASP.NET Code-behind?
Re: How to set BaseUrl from ASP.NET Code-behind?
Storing BaseDir/BaseUrl settings in a cookie doesn't seem to be secure to me. After all, user may try to modify cookie and put there his own values.
If you can't use session, how about doing it this way:
- assign random uniqueId to baseUrl/basePath combination and save it in db (e.g. dfR5t6g6hXc = "/ckfinder/userfiles"/)
- set the CKFinderId property, it will be passed later to the server connector (it will be appended to the url)
- in the configuation file read Request.QueryString[ "id" ] and load valid BaseUrl from db
Here's an example that shows how to set CKFinderId property (see documentation).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+