I hope this helps, My goal was to have two different sources of images. First source would be the user folder which is unique for each user and the other is shared folder that contains logos. Well FCK editor in all of its greatness did offer this with standard configurations so I had to take it apart!
First of I use Cold Fusion and I am sure you can accomplish this using your own serverside connectors.
Step 1. \FCKeditor\editor\filemanager\connectors\cfm\config.cfm
Config.UserFilesPath = "/#COOKIE.user#/" ;
Re: How to create custom folders
I am using #Session.Username#....When atempting to browse, i get a Element Username is not found in Session. I have tried including my Application.cfm in the config.cfm and connector.cfm pages but no dice...Any idea on how to instruct the FCKEditor to look for my Application file?
Thanks!
Re: How to create custom folders
<cfparam name="session.username" default="">
<cfapplication name="MyApp" clientmanagement="Yes"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,15,0)#"
applicationtimeout="#CreateTimeSpan(0,2,0,0)#">
I am guessing you will have secure login area, so when user provides correct credentials like username and password you would set session.username to usrers usrname:
<cfset session.username = #username#>
Hope this helps!
How do you change the Img src=
I am adding this to my existing Content Management System whichs build the content pages for a site using a an admin site with a different domain name than the actual site.
The challenge I am facing is once the file is uploaded to the img src is the relative path from the wwwroot which of course yields a broken image icon.
What I need to do is replace the relative src path with the URL to the image.
I can't find the place in the editor where the src name is generated.
Any clues?
My interim solution is to replace the path after the page is updated but I think there should be a solution with the FCKEditor