Personal tools
You are here: Home Support Plone Development FAQ Viewlets

Viewlets

Document Actions
Up to Plone Development FAQ

What is CMFContentPanels?

CMFContentPanels is a cmf/plone portlets product. You can create a new content which is composed of other contents as configurable content panels. You can change the layout, the panel skin and the content viewlet through the web.

Features

  • support multi-page and mulit-column
  • full function layout management, easy to use: move panels left/right/up/down
  • construction of very complex page: contentpanels can be nested within another contentpanels.
  • extensible css panel skin. 4 skins provided by default. Select or extend the skin as you like.
  • plone portlet compatible viewlets. easy to extend.
  • integrate with plone's default portlets, add some new portlet like my recent changes.
  • predefined viewlets for Document, Image, Folder, Topic, ZWiki Page, PloneChat, mxmDynamicPage.
  • suport relative content path

How to Extend CMFContentPanels? (For Developers)

How to make more viewlets?

Viewlet is a view of content which can be selected in contentpanels. Viewlet can be a zpt or a zpt macro. Viewlets are registered with CMF Action mechanism.

  1. Write a viewlet for your content. You can refer to stuff at \CMFContentPanels\skins\contentpanels\viewlets, which are default viewlets.
  2. Add a new CMF action with the CMF Action mechanism. Remember, the action catalog should be panel_viewlets. See the Install.py for detail

How to add new panel skin?

You can define a new css wrapper to define a new panel skin:

  1. customise contentpanels_skin.css.dtml, write your new css wrapper there
  2. go to ZMI portal_contentpanels, in the properties view, add your new wrapper there.

Added 2008-03-26 10:34