[framework-one] c5 filemanager/ckeditor integration

87 views
Skip to first unread message

callem

unread,
May 2, 2010, 10:46:44 PM5/2/10
to framework-one
Hi all,

i'm trying to get ckeditor with c5 filemanager (http://
forum.filemanager.corefive.com/#home) to play nicely.

Ckeditor works fine and have had no issues there, the filemanager
however makes calls to cfm files (Connectors) which get intercepted by
the request handling in framework 1. I've tried adding an additional
condition to the final if statement in onRequestStart which allows
calls to cfc's direclty but doing this seemed to cause more issues. I
then tried sticking 1 big if statement around the framework action
processing to stop it running if we look for anything under /ckeditor.
This also didnt work for obvious reasons (im presuming the other app
functions expect certain variables to be defined like "Services".


Note - when i tried adding the additional condition the file manager
did load but if i attemtped to create a folder i would get wierdness
and when i tried uploading an image it tried to get me to save
filemanager.cfm. The other method i tried with the if statement around
it all just threw an error message stating services is undefined.

Also when i tried using the filemanager prior to modifying
onrequestStart the problems that occured were framework 1 trying to
find the default action but under the filemanager location eg its
attempting to run the following: "http://www.hostname.com/sitename/
ckeditor/filemanager/scripts/jquery.filetree/connectors/
jqueryFileTree.cfm?action=home:page.home"

Can anyone shed some light on what might be the best way to allow
calls to the filemanager through without framework ones bits and
pieces being run.

Cheers guys, let me know if you need more info.

- callem

--
You received this message because you are subscribed to the Google Groups "framework-one" group.
To post to this group, send email to framew...@googlegroups.com.
To unsubscribe from this group, send email to framework-on...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/framework-one?hl=en.

callem

unread,
May 2, 2010, 10:48:24 PM5/2/10
to framework-one
1 more thing - i have made minor modifications to onRequestStart to
allow ses urls as "index.cfm/subsystem/action/event" pretty sure the
changes i made won't have affected anything.

cheers

Shane Pitts

unread,
May 3, 2010, 12:04:51 AM5/3/10
to framew...@googlegroups.com
Is there any chance you can just add an additional application.cfc file under /ckeditor? I'm assuming that might cause issues with your session state if you're using it for authentication in the file manager, but there are ways around that too by setting up a simple database store for session info and use it in both apps..

callem pittard

unread,
May 3, 2010, 12:17:11 AM5/3/10
to framew...@googlegroups.com
Could work, and shouldnt cause any major issues with the session/user system pretty sure we've always had to add dodgy hacks inside the filebrowser code to enforce use security for folders which doesnt need any on Request checks.

Thanks :) will let you know how i go.

callem

unread,
May 3, 2010, 10:04:16 PM5/3/10
to framework-one
That did eventually work had to get a fresh copy of the filemanager
tho and then just overrode all the eventhandlers in app.cfc.

Cheers
Reply all
Reply to author
Forward
0 new messages