This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
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
Release History

Release History

1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.collage.nested-1.0.zip (29.7 kB) Copy SHA256 Checksum SHA256 Source Aug 9, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting