Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by BobHarner: http://wiki.apache.org/lenya/HowToIntegrateFCKEditor The comment on the change is: Minor path fixes per Michael Hartmann ------------------------------------------------------------------------------ 4. Also in `lenya/webapp/lenya/resources/misc/fckeditor`, create a new file called `uploadComplete.xhtml` that contains just beginning and ending `<html>` tags. The remaining html will be added during the transformation. This is the response that's sent to Fred after an asset has been uploaded which contains the name of the file being uploaded and an error code. - 5. Add the following actions to `lenya/webapp/lenya/sitemap.xmap`: + 5. Add the following actions to `sitemap.xmap`: {{{ <map:action name="frededitorsave" logger="sitemap.action.frededitorsave" src="org.apache.lenya.cms.cocoon.acting.FredSaveAction" /> <map:action name="upload-fred-asset" logger="sitemap.action.upload-fred-asset" src="org.apache.lenya.cms.cocoon.acting.UploadFredAsset" /> }}} - 6. Add the following to `lenya/webapp/global-sitemap.xmap` after `<!-- Editor BXE -->` + 6. Add the following to `global-sitemap.xmap` after `<!-- Editor BXE -->` {{{ <!-- FCK Editor Connector for asset upload and insertion as well as link creation --> @@ -462, +462 @@ }}} - 11. Copy the attached FredSaveAction.java as a new Action in `org.apache.lenya.cms.cocoon.acting` that saves the content to a temporary file. + 11. Copy the attached `FredSaveAction.java` as a new Action in `org.apache.lenya.cms.cocoon.acting` that saves the content to a temporary file. This code is basically the same as `org.apache.lenya.cms.cocoon.acting.OneFormEditorSaveAction.java`, with a few modifications. Validation needs to be added here. - 12. Copy the attached UploadFredAsset.java as a new Action in `org.apache.lenya.cms.cocoon.acting`. + 12. Copy the attached `UploadFredAsset.java` as a new Action in `org.apache.lenya.cms.cocoon.acting`. This code uploads an asset to the page's asset directory. When creating the Publication, one of the parameters required is the context. Right now, this is hard coded. I have yet to figure out a way to get this. Obviously, hard coding is not the solution - still working on this. Thinking about putting the context in a properties files somewhere. Most of this code was taken from the action `org.apache.lenya.cms.cocoon.acting.UploadAction.java` and modified to work with Fred. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
