collective.collage.nested

by Marcos F. Romero last modified Aug 09, 2011 03:19 PM

Display a nested Collage inside Collage

Project Description

Introduction

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.

Credits

Development

  • Marcos F. Romero <marcos.romero {at} inter-cultura {dot} com> (developer)

Changelog

1.0 (2011-08-09)

  • i18n support
  • English and Spanish translation
  • Full layout now displays related items
  • Full test

1.0dev (2011-03-24)

  • Initial release
  • Patches for Products.Collage.browser.controlpanel.CollageSiteOptions enabledType and enabledAlias
  • 2 views to support nested Collage: full and content

Current Release
collective.collage.nested 1.0

Released Aug 09, 2011 — tested with Plone 4, Plone 3

Display a nested Collage inside Collage
More about this release…

Download file Get collective.collage.nested for all platforms
Product Package release 1.0
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Licenses Status
1.0 Aug 09, 2011 Display a nested Collage inside Collage More about this release…
Plone 4
Plone 3
GPL final

Comments (0)