Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.collage.nested

How to install collective.collage.nested

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.collage.nested
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
1.0dev Available View build log
Windows (64-bit)
1.0 Available View build log
1.0dev Available View build log
Mac OS X (10.5+)
1.0 Available View build log
1.0dev Available View build log
Linux (32-bit)
1.0 Available View build log
1.0dev Available View build log
Linux (64-bit)
1.0 Available View build log
1.0dev Available View build log
 
License
GPL
Lastest release
version 1.0 on Aug 10th, 2011

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

Subscribe to package updates

Last updated Aug 10th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.