Skip to main content

A Plone portlet that shows a content item.

Project description

Introduction

This portlet shows a content item as content in the portlet. It’s LinguaPlone aware, and is initially created to provide a language-dependent address footer.

Author: Lennart Regebro <regebro@gmail.com>

Development funded by the Nordic Council and Nordic Concil of Ministers. http://www.norden.org/

Compatibility

The product is compatible with Plone 3 and Plone 4.

Tested on Plone 3.3.5 and Plone 4.0b5.

Installing

Add collective.portlet.content to your buildout and re-run buildout. Install the product in your Plone site using the Plone Control Panel (prefs_install_products_form) or the ZMI’s portal_quickinstaller.

Using

Go to @@manage-portlets. If the product was installed properly, you’ll have the option to add a Content Portlet.

Next, select a content item to display. It can be any type of item. You can select which of the item’s fields you want to display in the portlet’s content area:

  • Title (either as a link to the content item or as plain text)

  • Description

  • Date

  • Body text

  • Image

When the content item doesn’t have a selected field, it should work without errors, but you’d obviously not see the field in the portlet.

You can set these options separately:

  • portlet’s title as shown in @@manage-portlets screen

  • portlet header title as rendered on page (use content’s title or select custom)

  • hide portlet header altogether

  • conditionally show a portlet footer with a link to the content item (link text is configurable)

  • disable the portlet border

To do

  • translations

  • tests

Changelog

1.3 (2010-07-29)

  • Plone 4 compatibility (while maintaining Plone 3 compatibility) [pcaro]

  • Added options to display fields other than the body text. [yomatters]

  • Allow portlet border, header and footer to be disabled. [khink]

  • Added z3c.autoinlude.plugin so we don’t need to add zcml to buildout. [khink]

1.2 - 2009-1-30

  • Test coverage with translated content portlets via LinguaPlone [andrewb]

  • Improved test coverage over original paster created boilerplate portlet tests. Now verify the portlet renderer contains the body text of the chosen content item. [andrewb]

  • Fixed getTranslation AttributeError when product is used outside the context of LinguaPlone aware content. [andrewb]

1.1 - 2008-11-25

  • Fixed a UnicodeDecodeError. [regebro]

1.0 - 2008-11-06

  • Initial release

Project details


Download files

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

Source Distribution

collective.portlet.content-1.3.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file collective.portlet.content-1.3.tar.gz.

File metadata

File hashes

Hashes for collective.portlet.content-1.3.tar.gz
Algorithm Hash digest
SHA256 b03f72dc1bbfe0eb8b7da35f0337cf0b4ad70fa3666300656f9d1b091a407fb3
MD5 7903595743c7db63ee95a3d65508c9b2
BLAKE2b-256 286c9940f1b2a3483315e560c61927facfe7c0e8724663130b3d8095576d1aad

See more details on using hashes here.

Supported by

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