[Zope-CMF] Customizing the document edit behaviour
Jens Vagelpohl
jens@zope.com
Mon, 10 Sep 2001 14:35:47 -0400
kamon,
make sure your factory type information points to your special form as the
edit form by putting "howto_edit_form" as the "Initial view name".
then delete one of the two separate edit actions, either "edit" or
"metadata". the remaining edit action should point to "howto_edit_form" as
its action.
define a python script that acts as the target for the form on your
howto_edit_form. this python script has to call both the "editMetadata"
and the "edit" methods on your howto object. look in the skins tool at
content/metadata_edit and document_edit for what you need to do.
jens
On Monday, September 10, 2001, at 12:18 , kamon ayeva wrote:
> Hi,
>
> I have created a Factory-based type based on 'CMFDefault:Document' to
> manage howtos content in a CMF site. How can I customize the creation of
> these Howto objects, so that all the object's fields (Metadata fields +
> content fields) are handled through a unique form 'howto_edit_form'
> instead of 'metadata_edit_form' + 'document_edit_form'.
>
> Thanks.
> Kamon
> eXperts-MD
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests