This is my first time around integrating FCKeditor into Coldfusion and I need some help with configuration settings.
I've installed FCKeditor and CKFinder and have FCKeditor up and running on a page. Here's where I'm having problems...
I'm trying to set the default upload directory to a session variable that I establish upon authentication to the site.
I've change the following setting in:
\fckeditor\editor\filemanager\connectors\cfm\config.cfm
to
Config.UserFilesPath = "/images/#session.as_name#/" ;
The upload is successful; however, the uploaded file ends up in a folder named 'image' which is created under the session variable I supply.
For example, I expect and would like the file to end undirectly in the folder I specify, like this:
/images/gary/filename.jpg
but instead I get:
/images/gary/image/filename.jpg
Can someone point me in the right direction on where this default folder is setup and can be changed (eliminated)?
My second issue is that when I browser the server when inserting images I do not get the interface that appears in the demo for CKFinder. Should I?
If so, how do I get this to integrate with FCKeditor?
Thanks in advance for any help you can give me.
Roger
I've installed FCKeditor and CKFinder and have FCKeditor up and running on a page. Here's where I'm having problems...
I'm trying to set the default upload directory to a session variable that I establish upon authentication to the site.
I've change the following setting in:
\fckeditor\editor\filemanager\connectors\cfm\config.cfm
to
Config.UserFilesPath = "/images/#session.as_name#/" ;
The upload is successful; however, the uploaded file ends up in a folder named 'image' which is created under the session variable I supply.
For example, I expect and would like the file to end undirectly in the folder I specify, like this:
/images/gary/filename.jpg
but instead I get:
/images/gary/image/filename.jpg
Can someone point me in the right direction on where this default folder is setup and can be changed (eliminated)?
My second issue is that when I browser the server when inserting images I do not get the interface that appears in the demo for CKFinder. Should I?
If so, how do I get this to integrate with FCKeditor?
Thanks in advance for any help you can give me.
Roger
Re: FCKeditor configuration and setup for Coldfusion
Config.FileTypesPath["File"] = Config.UserFilesPath & 'file/' ;
Config.FileTypesAbsolutePath["File"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath & 'file/') ) ;
There is set of these setting for each file type, (File, Image, Flash, Multimedia)
All you have to do is remove & 'file/' or & 'image/' & 'flash/' ...... so it looks like:
Config.FileTypesPath["File"] = Config.UserFilesPath;
Config.FileTypesAbsolutePath["File"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath) ) ;
Re: FCKeditor configuration and setup for Coldfusion