CPSPortlets How to control the presentation of displayed items.
Jean-Marc Orliaguet (2005-03-23) The items displayed in Content Portlets boxes have a presentation layout that consists of:
­ ­ ­

a title a description a link to the document ( >>)

this is a default layout that works with all types of documents. But sometimes it is necessary to display more information about the document itself (for instance a preview image, a publication date for an event, etc.) To modify the presentation of items in the Content Portlet first create a layout cluster1 in the flexible type definition of the item to display display ­ call it for instance 'preview'.

A layout cluster is a collection of layouts. For the 'newsitem' type create a 'newsitem_preview' layout and register a cluster in the NewsItem flexible type information (portal_types) under "Layout clusters":

Layout clusters:

metadata:metadata, preview:newsitem_preview

1 Layout clusters are available in CPS 3.3.2 and above


Now in the Content Portlet configuration form select:
­ ­

Render the items: Yes Cluster ID: preview

All news items will be rendered using the 'preview' cluster. Other items that have no registered 'preview' cluster will be displayed using the default presentation layout described above.

If no cluster ID is specified and the Render items option is selected, then all items will be rendered using the default type layout.