Attention

This document was written for an old version of Plone, Plone 3, and was last updated 207 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Customizing the viewlets in main_template

Since Plone 3.0, main_template.pt calls viewlet managers instead of METAL macros. Learn from this tutorial how viewlets can be programmatically reordered, hidden or added (from a product on the filesystem).

  1. Introduction What this tutorial is about
  2. Viewlet registration in Plone 3.0 How viewlets are registered in a default Plone installation.
  3. Reordering and Hiding viewlets How to simply change the viewlets behavior from a Generic Setup Profile.
  4. Adding a viewlet How to add a viewlet and still have several skins living in peace.
  5. Overriding a template viewlet How to use Zope 3 technology to override a viewlet with template definition.
  6. Overriding a class viewlet How to use Zope 3 technology to override a viewlet with class definition.
  7. Moving a viewlet from a viewlet manager to another one The title says it all…

All content on one page (useful for printing, presentation mode etc.)

 

Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.