You are here: Home Plone products collective.collage.nested

collective.collage.nested (1.0)

1
by Olha Pelishok last modified 2011-08-16
0.0
0.0
0.0
0.0
Released on 2011-08-09 by Inter-Cultura, Marcos F. Romero for Plone 3.0, Plone 4.0 under LGPL - GNU Lesser General Public License available for All platforms.
Software development stage: stable
Display a nested Collage inside Collage
collective.collage.nested

This package enables Collage to support nested Collage objects.

Additionally, two views (Collage layouts) are available:

  • Full: displays exactly the same as a Collage default view, including title, description, related items and, of course, the contents (rows and columns).
  • Content: displays only contents (rows and columns).

To allow Collage objects to be created inside columns we had to patch enabledType and enabledAlias methods in Products.Collage.browser.controlpanel.CollageSiteOptions to allow Collage content type to be inserted in a Column.

Additionally, a CSS resource is registered (just below the original collage.css) to display nested column widths correctly.

Usage

If you want to create new views (layouts) for nested collage objects base your class on the new NestedCollageView one, like this:

from collective.collage.browser.views import NestedCollageView

class MyNestedCollageView(NestedCollageView):
""" A custom view for a nested collage """
...

Known issues

Ideally Products.Collage.config.COLLAGE_TYPES should be patched however collage.vocabularies.CollageUserFriendlyTypes doesn't seem to notice the change, so Collage control panel doesn't display Collage as an allowed portal type. Patches are applied to enabledAlias and enabledType instead.

Document Actions
Powered by Plone