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

Chapter 11. Standalone Views and Forms

In the previous chapter, we learned how to create content types with custom views. When rendering a view, the current content item was accessed through the context variable. Because of the way in which the views were registered in ZCML, they could make the assumption that their context provided a particular interface, through which it could be inspected or modified.

Not all pages in an application will be tied to a specific content type, however. In this chapter, we will consider templates and forms more generally, and learn how to create views that are not registered for a particular type of context. We will also consider how to deal with form submission, and how to auto-generate forms using zope.formlib ...

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