[Zope] Editing Question

Chris Withers chrisw@nipltd.com
Wed, 30 Apr 2003 13:17:10 +0100


Simon wrote:
> What I am thinking is (as an example) an article or paper that has say, a
> title, an abstract, a body and a few other components.  I am thinking that
> DTML Documents are the way to go for these components.

What makes you think that?

> What I would like to do it put next to each section, an "edit" button, the
> onclick handler will set the content-editable proprety of the associated
> text block to true, and will reveal save and undo buttons. This, I have no
> trouble with, but what I cannot see how to do in Zope, is to have the save
> button post the new content to the DTML document that it belongs in.

Have a hidden form field of the document you want to edit.
Post the form to a python script, which can use the hidden field to find the 
correct document to edit.

cheers,

Chris