Professional Plone Development:
Building robust, content-centric web applications with Plone 3, an open source Content Management System
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 11

Introduction
1: Plone in Context
2: The Case Study
3: The Development Environment
4: Customization Basics
5: Developing a Site Strategy
6: Security and Workflow
7: Using Add-on Products
8: Creating a Custom Theme
9: Nine Core Concepts of Zope Programming

10: Custom Content Types
11: Standalone Views and Forms
12: Relational Databases
13:
Users and Their Permissions

14: Rich User Interfaces with KSS
15: Next Steps
16: Server Management
17:
Setting Up a Production Server

18: Authenticating with LDAP
19: Looking to the Future
Index

Latest Updates

Free Chapter:

Chapter 2: The Case Study [946 kB PDF]

Code Download

Contact us

 

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

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 2007. All rights reserved. Terms and Conditions