A collection portlet product which supports multiple views
Project description
Introduction
The collectionmultiview portlet is a collection portlet which supports multiple view modes. It inherits the built-in plone.portlet.collection and extend it with view adapters support.
Writing additional views
Creating an additional view is as simple as writing a class which inherits from CollectionMultiViewBaseRenderer, and register it as a named adapter
Sample code:
from collective.portlet.collectionmultiview.renderers.base import ( CollectionMultiViewBaseRenderer) from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile class MyCustomRenderer(CollectionMultiViewBaseRenderer): __name__ = 'My Custom Renderer' template = ViewPageTemplateFile('path/to/template.pt')
ZCML:
<configure xmlns="http://namespaces.zope.org/zope"> <adapter name="mycustomrenderer" factory=".package.MyCustomRenderer"/> </configure>
Changelog
1.1 (2011-03-27)
Plone4 compatibility
Renderers now may have a human readable __name__
Removed GalleryRenderer as it is broken anyway
Hide unnecessary fields from the base Plone collection portlet.
1.0 (unreleased)
fix permission used for portlet [vangheem]
0.1 (2009-12-31)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.portlet.collectionmultiview-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dada8272628ce388ebe97723d70924ae8a8402d6a607914b5ab0660a13aeaf9 |
|
MD5 | 36c64295906b3eac67b73e2b988b64db |
|
BLAKE2b-256 | 67876f32c1be1f96af553372f4a2c84f7b630c47d21fe4716ae3b53bcd788457 |