Not Logged In

collective.panels 1.3.2

Panels are sets of portlets appearing in various layout configurations
which you can insert into a selection of Plone’s existing locations
(above and below page contents, portal top and footer).

It aims to render a number of existing add-ons obsolete, including
Collage,
collective.portletpage and
Products.ContentWellPortlets. The
functionality represented by these add-ons is mostly available in
panels, too, and comes in an implementation that builds directly on
Plone’s portlets framework.

Compatibility: Plone 4+ required.

Introduction

You often have a need to add supplemental content to existing pages,
content items or folders.

The included portlets infrastructure serves some, but not all of these
needs, letting you add portlets in the left and right column, which
are inherited down the content hierarchy.

Panels provide a simple mechanism to add portlets to additional
locations, without inheritance, and let you display portlets in
different layouts.

Examples

Front page

Instead of, or in addition to, a page acting as the default
content on a folder, you can create a collage of portlets and
display it below an introductory text.

There’s a lot of flexibility because you can integrate the panel
display with Plone’s built-in content views. For instance, you
could provide a search interface in addition to the standard
folder listing.

Supplement static content

Use panels to add portlets above or below a static page.

Features or advertisement

Add panels to the ‘portal top’ location which by default renders
just below the section navigation for an impressive effect.

Documentation

Usage

To create a new panel, or manage existing ones, the editor clicks the
“Manage panels” link appearing in the footer (it links to
@@manage-panels) — similar to Plone’s column portlets.

The management view is an overlay of the default content view.

Creating a new panel

To create a new panel, there’s a collapsible form appearing just below
the page title (“Add panel”).

If no panels exist already, the add form appears open to begin
with.

Then, simply choose a location (a default choice is already
provided), and select a layout. Then add portlets using the
“Manage panel” form (see next).

Managing existing panels

In the management interface, a collapsible form appears below
existing panels (“Manage panel”).

This is similar to Plone’s standard portlet interface and in fact
uses it directly.

It provides options to add a new portlet, change panel layout or
manage existing portlet assignments.

Locations

The management interface checks with Plone’s viewlet visibility
settings to list only the applicable adding locations. This allows an
administrator to visit the portal’s @@manage-viewlets screen and
put a restriction on panel locations.

Adding additional locations is currently not supported. The limitation
here is that Plone’s viewlet manager framework does not provide
labels, or other enumeration.

Layouts

There’s a choice of layout for each panel, selected when the panel is
first added, with an option to change later on. These layouts are
registered as components using an included ZCML-directive.

Author

Changes

1.3.2 (2012-06-15)

1.3.1 (2012-06-15)

Added portlet-${n} classes to the wrapper elements that render
the portlet.

The panel elements now have a class that matches the layout id.

Added new spacing ‘small’, set at 0.55%.

1.3 (2012-06-15)

Features:

A panel location can now be configured to be local to nearest site
context. For instance, the footer manager can be configured in this
way such that it’s possible to use panels to create a site footer
(which will be shown on all pages within that site).

Layouts now have a required description attribute which will be
shown in the “Manage panels” fieldset (instead of the title, which
is usually very short and non-descriptive).

1.2.3 (2012-06-08)

Bugfixes:

The portlet settings dictionary was missing. Not strictly a bug,
but the IPortletAssignmentSettings API exists to provide this
information to the column renderer and we should provide it, too,
for the portlet renderer wrapper template.

Panel manager must provide get method. This fixes issue #8.

1.2.2 (2012-05-18)

Bugfixes:

Fixed an issue that prevented the versioning tool to check in a
document when a panel had been added. This fixes issue #5.

1.2.1 (2012-05-17)

Bugfixes:

Fixed an issue with incompatible template syntax.

Fixed an issue where a panel would not correctly return a
representation string when not acquisition-wrapped. This addresses
issue #5 (but turned out not quite to fix it entirely).