Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Professional Plone 4 Development

You're reading from   Professional Plone 4 Development Build robust, content-centric web applications with Plone 4.

Arrow left icon
Product type Paperback
Published in Aug 2011
Publisher Packt
ISBN-13 9781849514422
Length 516 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

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 that the views were registered, 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 learn about:

  • Templates and forms more generally
  • Creating views that are not registered for a particular type of context, but are available either everywhere or on the portal root
  • Handling form submissions in views that submit to themselves
  • Auto-generating forms using the z3c.form library
  • Writing viewlets
  • Creating a control panel form
  • Using the global helper functions Plone makes available to all views

Pages without a specific context

As it happens, there is no such thing as a truly context-less...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image