Hello,
We're integrating CKFinder with an ASP.Net application, and making use of the config.ascx file. Unfortunately, it looks like the base path and startup path are hard-coded into that control file. Is it possible to set those values dynamically? They may have different values depending upon context.
Thanks in advance.
We're integrating CKFinder with an ASP.Net application, and making use of the config.ascx file. Unfortunately, it looks like the base path and startup path are hard-coded into that control file. Is it possible to set those values dynamically? They may have different values depending upon context.
Thanks in advance.
Re: Change base path and startup path with config.ascx?
You can use session variables in config.ascx.
To change the path depending on the context you may also use StartupPath.
See Documentation form more details.
In some special cases, you may also use CKFinderId to change the path in config.ascx dynamically depending on the CKFinderId passed in the url.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Change base path and startup path with config.ascx?
Hello! StartupPath not work.
I downloaded latest version CKFinder for asp.net, created simple project. (WebSite1)
I tested in VS 2010 Express, framework 4.0
I set in config.ascx
// The base URL used to reach files in CKFinder through the browser.
BaseUrl = "/WebSite1/ckfinder/userfiles/";
BaseDir = "";
aspx page:
Attachments:
Re: Change base path and startup path with config.ascx?
I have tried doing a similar thing in JavaScript and it worked fine for me (slightly modified stadalone.html sample):
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+