Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description


With collective.multitemplate you can register more than one template for a portlet and when adding such a portlet you can select which template to use for rendering the portlet. It’s similar to the ‘display’ menu for content.


A portlet needs to support collective.multitemplate by using collective.multitemplate.portlet.Assignment as the base class for assignments and use collective.multitemplate.portlet.ViewMultiTemplate by wrapping the default template like this:

render = ViewMultiTemplate(ViewPageTemplateFile(""))

It is then possible to define additional templates with code snippets like:

additional_template = MultiTemplate(ViewPageTemplateFile(""))

and zcml like:

  name="Additional template"

The registration of additional templates can live in a different package then the original portlet.


1.0b1 - 2009-09-22

  • Initial release
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (13.5 kB) Copy SHA256 Checksum SHA256 Source Sep 22, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting