Craig - this is what I did to get the image upload to work. Basically you
have to hack hack hack. The documentation is crap, but what do you expect,
its Spectra.
I'm sure there are better and more professional ways to do this;
Anyway, there is a js file called ewebeditpromedia.js .You have to modify
this code to open a file upload of your choice, and ignore the stupid xfer
method crap. FTP or HTTP; who gives a f***.
My code ended up looking like this:
function eWebEditProMediaSelection(sEditorName)
{
// The transfer method specifies what to load for the transfer.
var objMedia = eWebEditPro[sEditorName].MediaFile();
var XferMethod = objMedia.getPropertyString("TransferMethod");
//alert("xFerMethod: " + XferMethod);
var sPageLoad = 'http://(webroot)/ewebeditpro/imageupload.cfm';
if (sPageLoad.indexOf("?") < 0) // no ? in string
{
sPageLoad += "?";
}
else
{
sPageLoad += "&";
}
sPageLoad += 'editorname=' + escape(sEditorName) + '&upload=' +
escape(objMedia.getPropertyBoolean("AllowUpload"));
//alert(sPageLoad);
if(XferMethod != "")
{
window.open(sPageLoad, 'Images',
"scrollbars,resizable,width=640,height=480");
}
else
{
alert('The Transfer Method value is empty. Please specify
either "FTP" or a site address that will handle the file selection.');
}
}
Next step is to hack the imageupload file - I will send you a copy of what I
did.
Then you have to modify the config.xml file, modifying the xferdir and
webroot values as appropriate.
Its not pretty but it works. If you want to have different editors upload to
different directories on the server then you have to create and specify
different config.xml files for each one.
Hope this helps.
Darren Walker
Internet Application Developer
Redbanner Ltd
-----Original Message-----
From: Craig Fisher [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2001 17:16
To: Spectra-Talk
Subject: Ektron Editor
I am having a bear of a time dealing with the Ektron editor. It feels to me
like the problem is one that people should have encountered and solved
before now.
I am trying to configure the tool to allow image uploads. At this point I
do not care if I do it with FTP or with http. My instinct says that HTTP
would be better since I would have better control over the interface but I
am pretty confused as to how you manage that interface. So far FTP just
doesn;t work for me.
So: has anyone sucessfully enabled image upload with the Ektron editor that
ships with 1.5.1? If so did you use FTP or HTTP? where in the
documentation did you find the configuration procedures? (I'm pefectly
willing to RTFM -- the question is which FM!)
Also I read somewhere that we were entitled to a upgrade from Extron 2.0 to
the "next dot release". My understanding from the Ektron site is that 2.1
is out. Does anyone know how/if that upgrade works? Can we download it
somewhere? Is there someone to contact?
Thanks in adnvance,
Craig Fisher
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.