Skip to main content

Adds lead image to any content in plone site

Project description

This products adds complete support for adding descriptive image to any Archetypes based content in Plone site. Each object has new tab “Edit lead image”, which allows to upload new or remove current image. It is similar behaviour as Plone News Item (you can add image to news item and this image is displayed in news item overview listing.

There is folder_leadimage_view page template, which can be used to list all items in the folder together with images attached.

There is configuration control panel, where you can set maximum width and height of the uploaded images. The widht and height is applied on each image upload (image is automatically resized). You can specify smaller width and height which is used as image preview in the below content title viewlet (next to content Description). Large image is used in the above content body viewlet (floated left at the top of content body).

Below content title viewlet is preffered, but Manager can easily switch the viewlets on/off in the control panel.

There is FieldIndex and metadata in portal_catalog: hasContentLeadImage (True/False). This may help developers to create own templates optimized for displaying lead image.

Changelog for collective.contentleadimage

(name of developer listed in brackets)

1.0 - 2008/09/09

  • MIGRATION REQUIRED ! rewritten using archetypes.schemaextender. If you upgrade from version <1.0 please don’t forget to run upgrade step from portal_setup/Upgrades, choose the collective.contentleadimage profile, check the (0.3 - 1.0) upgrade step and press Upgrade button. [naro]

  • Moved leadImage field after the Descripton field. [naro]

  • leadImage field supports original size and one scale. [naro]

  • it is possible to specify maxwidth and maxheight in the controlpanel [naro]

  • created new viewlet in AboveContentBody viewlet manager. This viewlet displays large version of the image (size specified as maxwidth/maxheight in the controlpanel). It is possible to switch on/off both viewlets in @@manage-viewlets or in leadimage control panel. [naro]

0.4 - 2008/09/03

  • fixed portal action condition. There is new browser view which checks if object provides ILeadImageable interface. This view is called from action condition. [naro]

0.3 - 2008/09/03

  • fixed bug - hasContentLeadImage index was not registered. [naro]

  • added German translation. Thanks to Rainer Schaffer [naro]

  • fixed typo in actions.xml (second icon_expr should be available_expr) Thanks to Dan Jacka for spotting this [naro]

0.2 -

  • fixed docs [naro]

0.1 -

  • 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.contentleadimage-1.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collective.contentleadimage-1.0-py2.4.egg (40.5 kB view details)

Uploaded Egg

File details

Details for the file collective.contentleadimage-1.0.tar.gz.

File metadata

File hashes

Hashes for collective.contentleadimage-1.0.tar.gz
Algorithm Hash digest
SHA256 857776c6d10ab1e2aceb3fb98ee08e7ec83be71467de82ad95b2f4808651df64
MD5 304947674027e2ff9bd6ebbed8ab6afb
BLAKE2b-256 c0fd60082a5c70b7334dde91192e15baf628fc4a82ed3b409f6514976b2a8ef9

See more details on using hashes here.

File details

Details for the file collective.contentleadimage-1.0-py2.4.egg.

File metadata

File hashes

Hashes for collective.contentleadimage-1.0-py2.4.egg
Algorithm Hash digest
SHA256 73e99acc29a8c335be2ca4036bee6f7b1afbf781304d274e196c6eb51c046fed
MD5 70a494534cf6974c46438b3c5c0d8a12
BLAKE2b-256 868f7062726bc9ab20176f60c658bd4c2294abbaab7044101d839ee8980ff5e7

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