FCK-Editor is great thanx to everyone who made it possible.
OK i have written a cold fusion connector for FCKEditor v2 b2 it generates the returned XML, uploads images just fine, but the file manager doesnt display either photos or folders.
The configuration links in fckconfig.js are set correctly to the connector
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm" ;
any ideas or suggestions would be greatly appreciated.
thanx in advance
OK i have written a cold fusion connector for FCKEditor v2 b2 it generates the returned XML, uploads images just fine, but the file manager doesnt display either photos or folders.
The configuration links in fckconfig.js are set correctly to the connector
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm" ;
any ideas or suggestions would be greatly appreciated.
thanx in advance
RE: CFMX connector
While I'm not able to help you on your problem here, I'm certainly willing to beta test the hell out of it. Ping me off list (jake@countersinkdg.com) and we can chat about it if you're interested.
RE: CFMX connector
Are you using the cool extention mcukstorm(sp?) developed?
Shouldn't matter, actually... hrm. Without looking at the code I'd say it's the basepath.
Are you sure you're really sending XML? Did you do a <cfcontent type='text/xml'>?
I've got a cfm connector, not any type of quality to share, but it's working fine pulling stuff from a db. I found that when I wasn't seeing any images it wasn't returning the correct URL, although if you aren't seeing the folder images, you definately need to check the path you're sending as the folder image is in a subfolder of the default filemanager.
RE: CFMX connector
cfcontent tag
as far as i know the urls are correct i setup a few javascript alerts for the commands being sent to the connector and they all look correct.
all that needed to happen for the setup was chaning the few links in the fckconfig.js right?
RE: CFMX connector
So, yeah, all you need to do is set that connector path, which you have done.
Can you browse to the images without using the dialog? Maybe it's a permissions thing. Although, the folder picture should be comming up no matter what, as it's right there.
Are you using the default filemanager or mcukstorm's? If the latter, and you didnt' download the whole she-bang, you may need to add that folder picture.
That folder picture not loading up is probably what you want to get going, as that has nothing to do with the connector.
RE: CFMX connector
Here's what I got going that kinda works for my db-ed folders:
<cfelseif url.command eq 'GetFolders'>
<cfquery name="getFolders" datasource="datDataSource">
SELECT * FROM folders WHERE folderName LIKE '/#url.type##url.currentFolder#%' AND folderName != '/#url.type##url.currentFolder#'
</cfquery>
<cfset daFile = '<?xml version="1.0" encoding="utf-8" ?>
<Connector command="GetFolders" resourceType="#url.type#">
<CurrentFolder path="#url.currentFolder#" url="/#url.type##currentFolder#" />
<Folders>'>
<cfloop query="getFolders">
<cfset daFile = daFile & '<Folder name="#listLast(folderName,'/')#" />'>
</cfloop>
<cfset daFile = daFile & '</Folders>
</Connector>'>
<cfoutput><cfcontent type="text/xml">#daFile#</cfoutput>
<cfelseif url.command eq 'Thumbnail'>...
Pay special attn to:
<CurrentFolder path="#url.currentFolder#" url="/#url.type##currentFolder#" />
Make sure the url you return is valid... hrm. This crap pro'lly ain't much help, as you're using the filesystem, but for what it's worth, there it is. Heh. Beam'n supportive energy at least. =]
RE: CFMX connector
RE: CFMX connector
ok so i downloaded the whole demo from http://mcpuk.net and plugged in my connector and so forth. still same problem
is there anyway i can output the contents that get returned to the file browser?
RE: CFMX connector
Yes, goto your connector in the browser i.e.
http://localhost/editor/editor/filemana ... Type=Image
you will need to tweak that url to your setup but hopefully it gives you an idea, you should then see the xml response.
RE: CFMX connector
Or you could add:
alert(oXmlHttp.responseText);
after:
if ( bAsync )
{
oXmlHttp.onreadystatechange = function()
{
if ( oXmlHttp.readyState == 4 )
{
in the filebrowser/browser/default/js/fckxml.js file.
this will give you a JS alert box containing the response recieved from the connector.
RE: CFMX connector
ok .. i actually found it easer to create a new window and write the contents of the oXmlHttp.responseXML to it.. for some reason all of my attributes are uppercase ie NAME could this be my problem?
<Folder NAME="temp" />
<Folder NAME="wtf" />
RE: CFMX connector
RE: CFMX connector
anyway thank you all for your help