Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!


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

Project details

Download files

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

Files for collective.multitemplate, version 1.0b1
Filename, size File type Python version Upload date Hashes
Filename, size (13.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page