This is an experimental usecase which uses Cocoon Forms (CForms) to edit documents of the links resource type from the Default publication in 1.4-trunk. Patching: ========= 1. Copy the lenya/usecases/cformedit directory to the lenya webapp tree. 2. (Until fixed) copy the samples/common/xslt subtree from a full Cocoon build to the same location in the Lenya webapp. Note: Step 2 should not be needed any more once the sitemap has been refactored and the form will show up inside the Lenya navigation. I just haven't found the time yet but wanted to share this code to illustrate the discussion on the dev mailing list. Trying it: ========== - Log into the Default publication as editor - Go to the "Links" page - add "?lenya.usecase=cformedit&lenya.step=open" to the URL in your browser's address field - Enjoy! To-Do: ====== - Make sure Cocoon switches to the version of commons-jxpath that works with this, see: http://issues.apache.org/bugzilla/show_bug.cgi?id=34196 - Remove all unneeded parts copied from the Cocoon sample - Fix saving of the edited document with RC etc. Currently the edited file gets saved to a new file index_en-result.xml. Potential: ========== - Investigate if automagic / rule based generation of form model and binding from a RelaxNG schema are feasible