O'Reilly logo

Professional Plone Development: Building robust, content-centric web applications with Plone 3, an open source Content Management System by Martin Aspeli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing Custom Forms

So far, we have only created views to present information already in the ZODB and the only forms we needed were taken care of by Archetypes. Now, letting Archetypes provide edit forms and validation for content objects is a good idea, but we often need ad hoc forms as well, and Archetypes is not much help there.

Note

There is, however, a popular third-party product called PloneFormGen, which can be used to create ad hoc forms via a Plone GUI.

There is nothing magic about forms in Zope. Form submit targets resolve to views, page templates, or scripts that may inspect the request and take some action. A fairly common pattern is to create self-submitting forms—those where a page has a form that submits to the same page again. In ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required