Static portlets from one page template
Martin Aspeli wrote a page on creating unlimited static portlets from one page template on plone.org. We use the 2.5 template by Jon Stahl described on the same page (much thanks to both)
- To create a static portlet, just create a document with short name, say, my_document.
- Then include portal/public_home/my_document/portlet_view in either left_slots or right_slots in properties. You can create portlets out of already-created documents by just putting the short name of the document in place of my_document in the portlet call above.
- We modified Jon's template slightly so that the portlet header will not display if the document is given the title no_title.
- We also removed the portletFooter class from the bottom of the portlet - this allows different people to customize the portlet footer by calling it in the document:
ie
<p class="portletFooter"> Read more.... </p>
page created by
Shane Magee
—
last modified
2007-01-15 05:23
