|
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.
|
Chapter 11:
Standalone Views and Forms
- Pages Without a Specific Context
- Templates in Skin Layers
- Views Available on All Objects
- Views on the
Portal Root
- Invoking Standalone Pages
-
Writing Custom Forms
- Checking Form Submit Buttons
- Form Input Converters
- Performing Redirects
- Automatically Generating Forms
- The Form Controller Tool
- Forms in Viewlets
- Global Template Variables and Helper Views
Summary
|
|
Paperback
420 pages
Released:
September 2007
ISBN 1847191983
ISBN 13:
978-1-847191-98-4 |
|
|
|
|