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 10

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 10: Custom Content Types

Plone being a Content Management System, it is not surprising that programming for Plone usually revolves around content. Although it is possible to employ traditional web development techniques such as using standalone forms to populate a database, Plone is most powerful as a platform when problems can be modeled in terms of hierarchical, semi-structured content types.

In this chapter, we will learn how to design and implement new content types that address some of the specific requirements of the Optilux Cinema's example application. In particular, we will discuss the Archetypes framework and its role in modern Plone development. We will also demonstrate how to create a custom portlet, using Plone 3's new portlet management infrastructure.

 

Chapter 10: Custom Content Types

  • Content-Centric Design
  • Package Layout
  • Modeling with Interfaces
  • Using the Archetypes Framework
    • Content Base Classes
    • Schemata, Fields, and Widgets
      • Vocabularies
      • Reference Fields
      • Field and Object Validation
    • The Class Generator
    • Field Properties
    • Content Security
    • Views and Browser Resources
      • Icons and Style Sheets
      • Main Content Views
      • Edit Forms, Add Forms, and Events
    • Installing and Registering Types
      • Factories and Add Permissions
      • Registering Content Types with the Factory Tool
      • Adding Catalog Indexes and Metadata Columns
  • Installation and Configuration in the Policy Product
    • Adjusting the Security Policy
    • Adjusting Navigation Tree Properties
    • Enabling Content Object Versioning
    • Site Policy Tests
  • Functional Tests
  • Creating a New Portlet
    • Configuring and Registering New Portlet Types
    • Assigning Portlets Automatically
  • Zope 3, Formlib, and the Role of Archetypes
  • 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