I tried setting the path in my global file to no avail, so I even put it directly in the script below, still nothing. It ignores it and creates a new folder in my directory structure called UserFiles.
<cfscript>
// Calculate basepath for FCKeditor. It's in the folder right above _samples
basePath = #request.fckeditoraddress#;
fckEditor = createObject("component", "#basePath#FCKeditor");
fckEditor.instanceName = "content";
fckEditor.userFilesPath = "/uploads/";
fckEditor.ToolbarSet = 'Verticals' ;
fckEditor.value = '#Variables.content#';
fckEditor.basePath = basePath;
fckEditor.width = "400";
fckEditor.height = 500;
fckEditor.create(); // create the editor.
</cfscript>
<cfscript>
// Calculate basepath for FCKeditor. It's in the folder right above _samples
basePath = #request.fckeditoraddress#;
fckEditor = createObject("component", "#basePath#FCKeditor");
fckEditor.instanceName = "content";
fckEditor.userFilesPath = "/uploads/";
fckEditor.ToolbarSet = 'Verticals' ;
fckEditor.value = '#Variables.content#';
fckEditor.basePath = basePath;
fckEditor.width = "400";
fckEditor.height = 500;
fckEditor.create(); // create the editor.
</cfscript>
RE: UserFilesPath custom setting ignored-CFM
RE: UserFilesPath custom setting ignored-CFM
RE: UserFilesPath custom setting ignored-CFM
Did you follow the installation steps described at http://fckeditor.wikiwikiweb.de/Develop ... ColdFusion ?
RE: UserFilesPath custom setting ignored-CFM
root
-- subfolder (where application.cfm resides that has the user session folder I want it to pick up)
----fckeditor
----CMS (where the content editing area resides)
instead of
root
--subfolder
----CMS
--fckeditor
but it still won't pick up the session vars for the user folder. This is critical, since this is an online CMS shared by many clients.
RE: UserFilesPath custom setting ignored-CFM
This is basic ColdFusion stuff.
What you can do is create an Application.cfm file in the fckeditor directory, and cfinclude the Application.cfm located in the subfolder.
Or you could place your Application.cfm in the root folder.
RE: UserFilesPath custom setting ignored-CFM
RE: UserFilesPath custom setting ignored-CFM
I'm not sure I follow.
You say you never use Application.cfm, so I guess that you also never use cfapplication, or am I wrong?
So where do you have duplicate code?
By the way, if you took the time to read the installation guide, you would have seen that you don't need to have a cfapplication tag: you can place the FCKeditor settings in the request scope.
<cfset request.FCKeditor = StructNew()>
<cfset request.FCKeditor.userFilesPath = "/myApplication/FCK_TEST1/UserFiles/">
or in the server scope, however, I don't recommend the latter.
You don't even need to place this code in an Application.cfm file, you can just put it right before you create an FCKeditor (didn't check this one).
Not sure how the above code turns out to display on this forum, but if it's not clear, just check http://fckeditor.wikiwikiweb.de/Develop ... ColdFusion (search for request.FCKeditor)
RE: UserFilesPath custom setting ignored-CFM
I did take the time to read the documentation and also hours and hours pouring through this forum, and if I was only having to have everyone go to the same folder, you are correct, I would not need the cfapplication tag, but since I'm using session vars to direct each user to their own folder, it appears that I do. The duplication is that the cfapplication call now resides in both my app_globals and this new application.cfm tag.
BTW, I also had tried set the userFilesPath just before the call and it did not work.
RE: UserFilesPath custom setting ignored-CFM
RE: UserFilesPath custom setting ignored-CFM
RE: UserFilesPath custom setting ignored-CFM
Maybe you should try adding a cfabort tag in the last line of the connector.cfm file.
If you have debugging enabled, or there's an OnRequestEnd.cfm file, this could invalidate the xml that is produced by the connector.cfm.
By placing a cfabort in the last line of the connector, no output other than the xml is generated.
To check your xml, direct your browser to:
http://127.0.0.1:8600/YOURAPP/FCKeditor ... entFolder=
Make sure that you point to the actual location of you connector.cfm file.
Then you should do a view source and validate the xml.
If that doesn't identify the problem, I'm clueless...