Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/collective.behavior.relatedmedia
related image/attachment behavior management
https://github.com/collective/collective.behavior.relatedmedia
hacktoberfest
Last synced: 27 days ago
JSON representation
related image/attachment behavior management
- Host: GitHub
- URL: https://github.com/collective/collective.behavior.relatedmedia
- Owner: collective
- Created: 2019-11-25T15:10:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T13:53:16.000Z (about 1 month ago)
- Last Synced: 2024-12-22T18:45:37.940Z (about 1 month ago)
- Topics: hacktoberfest
- Language: Python
- Homepage:
- Size: 8.69 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
- awesome-plone - collective.behavior.relatedmedia - A behavior to create/upload/manage media relations (Image, File) for content types. (Media)
- trackawesomelist - collective.behavior.relatedmedia (⭐4) - A behavior to create/upload/manage media relations (Image, File) for content types. (Recently Updated / [Dec 27, 2024](/content/2024/12/27/README.md))
README
# 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.belowcontentbodyFeel free to override the placement in your package zcml for example::
## TinyMCE Template
We provide a TinyMCE toolbar icon to enable gallery placement inside the richtext editor::
- create a new paragraph in your text where you want to place the gallery.
- Click on the Gallery Icon in the toolbar
- Choose the images you want inside your gallery. You can drag/drop reorder the images too.
- Edit an existing gallery by clicking inside the preview block and click the toolbar icon again.NOTES:
- make sure you disable the checkbox "Show images in viewlet" to prevent double rendered gallery.
- When you add related images after you've inserted a gallery in TinyMCE you need to edit it again
and add the new images manually.## Author
- Peter Mathis [petschki]
## Contributors
- Peter Holzer [agitator]