Hi Gang ..
I've been using FCKeditor for a while and it's been great .. however I need to figure out a way to work this out, so here is the problem.
I have a hosted service where I host a few sites. These sites live off my root directory in the same fashion as the FCKeditor, so it'll look as this:
/FCKeditor
/CoolSite
/SmallSite
In the application.cfm file of each site I've made several attempts to enter the recommended code so that the default directory is changed:
<cfset application.FCKeditor = StructNew()>
<cfset application.FCKeditor.userFilesPath = "/myApplication/FCK_TEST1/UserFiles/">
or
<cfset request.FCKeditor = StructNew()>
<cfset request.FCKeditor.userFilesPath = "/myApplication/FCK_TEST1/UserFiles/#session.uniqueUserName#/">
None of these and other methods have worked, the upload directory is always read from the config.cfm file located in:
/FCKeditor/editor/filemanager/connector/cfm
The line in this file reads: Config.UserFilesPath = "/userfiles/" ;
I can't get this config value to be dynamic, ie (sesssion.imagePath) or be overwritten by the parameters set in the application.cfm file.
So .. what am I looking at here, can I get a different image file upload path for each site .. any help will be greatly appreciated.
Pagino
I've been using FCKeditor for a while and it's been great .. however I need to figure out a way to work this out, so here is the problem.
I have a hosted service where I host a few sites. These sites live off my root directory in the same fashion as the FCKeditor, so it'll look as this:
/FCKeditor
/CoolSite
/SmallSite
In the application.cfm file of each site I've made several attempts to enter the recommended code so that the default directory is changed:
<cfset application.FCKeditor = StructNew()>
<cfset application.FCKeditor.userFilesPath = "/myApplication/FCK_TEST1/UserFiles/">
or
<cfset request.FCKeditor = StructNew()>
<cfset request.FCKeditor.userFilesPath = "/myApplication/FCK_TEST1/UserFiles/#session.uniqueUserName#/">
None of these and other methods have worked, the upload directory is always read from the config.cfm file located in:
/FCKeditor/editor/filemanager/connector/cfm
The line in this file reads: Config.UserFilesPath = "/userfiles/" ;
I can't get this config value to be dynamic, ie (sesssion.imagePath) or be overwritten by the parameters set in the application.cfm file.
So .. what am I looking at here, can I get a different image file upload path for each site .. any help will be greatly appreciated.
Pagino
Re: Changing Default Image Upload Directory - Coldfusion
Set this to your server path, here is an example that I use so it gives each user it's own folder:
config.serverPath = "e:\sites\RH\images\#SESSION.Auth.UserID#\";
Re: Changing Default Image Upload Directory - Coldfusion
Re: Changing Default Image Upload Directory - Coldfusion
Thanks a lot in advance.
Re: Changing Default Image Upload Directory - Coldfusion
In addition I want to change the tabs in the Dialog. I want the Upload tab to be the first one.
Can someone please help me with this problem? I'm using ASP.NET.
Re: Changing Default Image Upload Directory - Coldfusion
Thanks a lot in advance.
Re: Changing Default Image Upload Directory - Coldfusion
Re: Changing Default Image Upload Directory - Coldfusion
Now, my question is - what exactly should I do to be able to painfully migrate to a new version (hoping that there were not much customizations done)?
Should I bring the newest editor into my solution, remove the old dll from bin folder?
Any advices as to how should I proceed?
Thanks a lot in advance.
Re: Changing Default Image Upload Directory - Coldfusion
Make sure you are also setting the [config.enabled = true] inside both browser and upload config files.
And you are setting your [_FileBrowserLanguage = 'cfm'] and [_QuickUploadLanguage = 'cfm'] in the fckconfig.js.
Hope this helps!
Re: Changing Default Image Upload Directory - Coldfusion
Create 'Application.cfm' in 'xxx\connectors\cfm\'
Add this line to run your appli. application.cfm
<CFINCLUDE TEMPLATE="../xxx/Application.cfm">
Hope this helps. I am using FCKeditor v2.5.1 with Coldfusion 5.