Skip to main content

Views for Products.Collage that display content with images from collective.contentleadimage

Project description

Introduction

This product allows the display of content with lead images within a Collage environment, in a Plone site.

The typical Summary view for a Folder or a Collection only displays images for News Items, the only default type that images can be assigned to. This package uses the existing ‘Folder lead-image view’ provided by collective.contentleadimage and displays the content within a Collage. Both Folders and Collections (Topics) can have this new Collage view applied to them.

Usage

Install this product using Buildout, or a similar method, and then start up your Plone instance. The ZCML configuration will automatically get picked up and register these additional views for your Collage content.

You should install collective.contentleadimage on your site in order for these Collage views to be useful. Assigning some lead images to content will also be necessary use these views to their potential.

Setting the layout

  1. Create a Collage.

  2. Add rows and/or columns accordingly to said Collage.

  3. Add a Folder or Collection to your Collage. This can be either actual content or an alias.

  4. In the Compose page for the Collage, locate the Layout link for the content you just added. Click this.

  5. Select Summary (lead images) and your new layout will appear.

  6. Assign lead images to content to have them appear in this layout.

Todo

  1. Some unit testing

Installation

  • Add collective.collage.contentleadimage to the list of eggs to install, e.g.:

[buildout]
...
eggs =
   collective.collage.contentleadimage
  • If you’re using a version of Plone earlier than 3.3, tell the plone.recipe.zope2instance recipe to install a ZCML slug:

[instance]
recipe = plone.recipe.zope2instance
...
zcml =
   ...
   collective.collage.contentleadimage

Authors

  • David Breitkreutz, JCU eResearch Centre [rockdj, davidjb]

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Changelog

0.1 - 15 June 2010

  • Created initial documentation for the product [davidjb]

  • Developed initial views from existing Collage layouts, mixed together with views from collective.contentleadimage [davidjb]

  • Initial release

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

collective.collage.contentleadimage-0.1.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file collective.collage.contentleadimage-0.1.tar.gz.

File metadata

File hashes

Hashes for collective.collage.contentleadimage-0.1.tar.gz
Algorithm Hash digest
SHA256 d06a6c86d07ceedfc011acf220a0776848765ff6113938cca24b0a1d565ad187
MD5 5cf0e33dcc301499fae6e6e74ac489e9
BLAKE2b-256 81ec1f71dea4b6df667a8c47585ee4c7c296e97dbc60b862c651abf56a1c4bea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page