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 Products.Collage.config.COLLAGE_TYPES and remove Collage content type from it.
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
Although COLLAGE_TYPES is patched, Collage vocabulary collage.vocabularies.CollageUserFriendlyTypes doesn’t seem to learn about it, so Collage control panel doesn’t display Collage as an allowed portal type.
Credits
Development
Marcos F. Romero <marcos.romero {at} inter-cultura {dot} com> (developer)
Changelog
1.0dev (unreleased)
Initial release
Patch in Products.Collage.config.COLLAGE_TYPES
2 views to support nested Collage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.collage.nested-1.0dev.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db000f39da35af494f6a7974c617502d7d4f50f86748a29f3ec793ec5a3357d7 |
|
MD5 | 36c2ac077ff54aacf5bea7fb803aefce |
|
BLAKE2b-256 | f150480b1249a13270d18689ec6f7dea5daa8e80675dcce16b1ea35579ea9202 |