Skip to main content

Adds Various configuration fields and viewlets to manage and show content related images and attachments

Project description

Upload and Manage Related Images and Attachments

This packages adds a dexterity behavior to upload and manage related images and attachments for rich media pages.

Install

Add to buildout configuration or pip install collective.behavior.relatedmedia.

Enable it in Plone Add-on controlpanel.

Configure

There is a Related Media Settings controlpanel in the Add-on configuration section.

Make sure you set a valid Media Container path where all the media is stored.

Edit

When you edit a Page go to the tab Related Media.

In the relateditems widgets you can select existing content from your page, or you upload new content via the uploader. Relation type is selected via the mimetype of the media. You can change the titles of the relations in an input field and rearrange the order within the widget via drag/drop.

View

The related media viewlets (image, attachment) are defined by:

  • collective.behavior.related_images -> plone.belowcontenttitle
  • collective.behavior.related_attachments -> plone.belowcontentbody

Feel free to override the placement in your package zcml for example::

<include package="collective.behavior.relatedmedia" />
<configure package="collective.behavior.relatedmedia">
    <browser:viewlet
        name="collective.behavior.related_images"
        for="*"
        manager="plone.app.layout.viewlets.interfaces.IAboveContentTitle"
        template="widget_images_display.pt"
        permission="zope2.View" />
</configure>

Author

  • Peter Mathis [petschki]

Contributors

  • Peter Holzer [agitator]

Changelog

3.0.2 (2022-03-09)

  • Fix bug in memoized utility [petschki]

3.0.1 (2022-03-09)

  • Fix adding leadimage to the gallery
  • Fix media container determination when in language independent Assets [petschki]

3.0.0 (2022-01-18)

Breaking changes:

  • 3.x is Plone6/py3 only version. Use 2.x for Plone5/py2/3 compatibility [petschki]

  • Change strategy for optional media base_path container creation. This is a registry setting.

  • inline title editing for related items

  • Plone6 / Classic Theme updates [petschki]

2.1.3 (2020-07-22)

  • Fix bug in util method when related base_path is missing. fixes #2 [petschki]

2.1.2 (2020-07-02)

  • Fix issue with unauthorized media folder [petschki]

  • Update/enhance default settings in controlpanel [petschki]

  • bugfix in workflow synchronization of related media base path [petschki]

2.1.1 (2020-05-27)

  • Fix imports to support plone.app.contenttypes < 2.0 [petschki]

2.1 (2020-05-27)

Features:

  • global setting to always update first related image as leadimage. This is disabled per default. [petschki]

2.0.3 (2020-05-26)

  • fix attachment viewlet to be hidden when no files are related [petschki]

2.0.2 (2019-12-13)

  • Fix bug in workflow sync event when pasting objects [petschki]

2.0.1 (2019-11-22)

  • merged HISTORY.txt and CHANGES.rst [petschki]

2.0.0 (2019-11-22)

  • Python 3 / Plone 5.2 compatibility [petschki]

  • Media Base Path feature [petschki]

  • test setup and CI [petschki]

1.1.1 (2018-05-25)

  • Update documentation. [petschki]

1.1 (2018-05-25)

  • fix image_size vocabulary. Plone 5 compatibility. [petschki]

1.0 (2018-05-23)

  • Fix issue with disapearing images when 'include_leadimage' was deactivated [petschki]

  • support for Event Occurrences. [petschki]

  • add markup for fancybox library [petschki]

  • Separate viewlet caption and overlay caption [petschki]

1.0b1 (2015-07-15)

  • title caption toggle for gallery images [petschki]

1.0a1 (2015-07-14)

  • 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.behavior.relatedmedia-3.0.2.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file collective.behavior.relatedmedia-3.0.2.tar.gz.

File metadata

  • Download URL: collective.behavior.relatedmedia-3.0.2.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for collective.behavior.relatedmedia-3.0.2.tar.gz
Algorithm Hash digest
SHA256 19cb922c2223c4277631b4d3004d9726db42f3df318eb8de39df608e797d1447
MD5 2bf4af91877c5a98227a9a1e32549ae8
BLAKE2b-256 439f086c1ac2d91754ce7dee252076e66e534cd23fb0dc2515998990c0e9ab0b

See more details on using hashes here.

File details

Details for the file collective.behavior.relatedmedia-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: collective.behavior.relatedmedia-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for collective.behavior.relatedmedia-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93c3f06f2d8b4280b054685fa99d71f206625566825c99e30bfd85adf580858b
MD5 50a7f5220d3e339ed00597fca17a4f9b
BLAKE2b-256 ffce80c04ac068ed28180899c605e0ef5ed9bd460b01cd4fa411806037a4501f

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