try CFFM - Coldfusion File Manager, I haven't used it but I've heard it's much 
easier to configure than the FCKeditor image mapping.
 
http://www.opensourcecf.com/cffm/ <http://www.opensourcecf.com/cffm/> 

________________________________

From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
Sent: Wed 3/29/2006 9:45 AM
To: CF-Talk
Subject: FCKeditor and image paths



I've been developing a CMS over the past year or so.  It started out
for one client, then I had requests from a number of other people for
pretty much the same thing, so I've just been copying the code for
each additional site that I build.  As you might imagine, it gets to
be quite a drag making the same change on multiple sites.

So, I'm retooling the app so that I have two "parts" to it -- the
core, application-specific code, and then another path that has
client-specific files.  I've got the split done with one exception --
the location where FCKeditor stores images that are uploaded through
the editor.

So, here's what I have (more or less) as far as directory structure goes:

\core  - this is set as web site root and contains application.cfc,
generic display templates, and other common files, including FCKeditor
\core\fckeditor\editor\etc....

And for the site-specific files, I use a directory outside of the
"core" path for things like site-specific custom tags (for look and
feel, mostly), site-specific config files, and site-specific images,
i.e.:

\site\images\
\site\lib\global.css
\site\images\customtags

I then map the \site directory as a virtual directory so that it can
be accessed properly, i.e. images are properly shown at
http://whatever.com/site/images/foo.gif

So, obviously, I want FCKeditor to upload images to \site\images\, so
to do this, I set the following in my application.cfc:

if (NOT isDefined("application.userFilesPath")) {
        application.userFilesPath = "/site/images/";
}

The problem is, uploaded images now go to \core\site\images\, i.e.
they are placed in the common part of the applicaiton, not the site
specific part.

Reading the forums on SourceForge, this is a problem that is common
across CF, ASP, PHP, and I'm sure more.  Patches have been developed
by end users for some languages, but I have yet to find one for CF.
Has anyone else who has encountered this issue found a fix for it?

I appreciate any help, this is literally the last issue that I need to
iron out before I roll out the new framework.

Thanks,

Pete



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236395
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to