Skip to main content

Photo gallery for Plone CMS.

Project description

https://github.com/plone/plone.gallery/actions/workflows/plone-package.yml/badge.svg Coveralls Latest Version Egg Status https://img.shields.io/pypi/pyversions/plone.gallery.svg?style=plastic:alt:Supported-PythonVersions License

A photo gallery view for Plone CMS.

Features

  • Shows photos of different sizes nicely and responsive

  • Allows to zoom and browse thru the photos

  • Has a white and blackmode

  • Fullscreen and Autoplay mode

  • Flexible setting of grid image scale and zoom image scale in gallery control panel

  • works for folders and collections

  • comes with TinyMCE templates for adding static galleries in Document,News items aso.

  • come with a gallery_shortcode to use in richtext like in TinyMCE editor.

It uses the libraries spotlight and flexbin in combination for that.

https://raw.githubusercontent.com/plone/plone.gallery/master/docs/plone-gallery.gif

Works from Phone to Big screen

https://raw.githubusercontent.com/plone/plone.gallery/master/docs/screenshot-gallerie-grid.jpg

TinyMCE templates

Also usable in TinyMCE with templates.

https://raw.githubusercontent.com/plone/plone.gallery/master/docs/screenshot-gallerie-grid-richtext.jpg

To enable the templates, add these lines to the templates field in TinyMCE control panel.

[
  {"title": "3 pictures as gallery", "description": "Photo gallery: 4 photos", "url": "++plone++plone.gallery/tinymce-templates/gallery-grid-3.html"},
  {"title": "4 pictures as gallery", "description": "Photo gallery: 4 photos", "url": "++plone++plone.gallery/tinymce-templates/gallery-grid-4.html"},
  {"title": "6 pictures as gallery", "description": "Photo gallery: 6 photos", "url": "++plone++plone.gallery/tinymce-templates/gallery-grid-6.html"},
  {"title": "8 pictures as gallery", "description": "Photo gallery: 8 photos", "url": "++plone++plone.gallery/tinymce-templates/gallery-grid-8.html"}
]

Translations

This product has been translated into

  • German (MrTango)

Installation

Install plone.gallery by adding it to your buildout:

[buildout]

...

eggs =
    plone.gallery

and then running bin/buildout

Usage

Please make sure that you have reasonable image sizes set in your portal. Something as follow should be good.

large 1400:1400 preview 600:600 mini 400:400 thumb 200:200

The large size is used for the zoom and mini for the preview grid view. Changing the other too just make sense if you change something.

After you have the correct sizes, you can just change the view on every Folder or Collection in Plone to “Photo gallery”.

TODO

  • make flexbin-row-height and flexbin-space configureable

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.1.6 (2023-04-04)

  • Fix serious bug in GalleryList view, which could slow down the website a lot. [MrTango]

1.1.5 (2023-03-22)

  • prevent outputfilter from running when addon is not enabled [MrTango]

1.1.4 (2023-03-22)

  • deactivate tinyMCE templates in config, to prevent overriding existing config. [MrTango]

1.1.3 (2023-03-20)

  • prevent error when related_photos attribute is None [MrTango]

1.1.2 (2023-02-24)

  • Extend related photo list with photos from context, not override them [MrTango]

1.1.1 (2023-02-24)

  • Add gallery gallery_shortcode feature to be used in RichText. Photos are coming from the new related photos behavior or are contained if it is a folderish type. [MrTango]

1.1.0 (2023-02-22)

  • Add TinyMCE templates with galleries and therefor always enable flexbin and spotlight resources [MrTango]

  • Fix traceback for missing cmf.ManagePortal permission (#12) [laulaz]

1.0.6 (2022-11-23)

  • Just improving the PyPi description [MrTango]

1.0.5 (2022-11-22)

  • Declare Plone 6 support and update CI [MrTango]

1.0.4 (2022-07-26)

  • Fix gally view for collections [MrTango]

1.0.3 (2022-07-26)

  • Fix missing plone.app.contentmenu zcml dependency for plone_displayviews menu [laulaz]

  • Add gallery control panel to allow setting grid_image_scale and zoom_image_scale [MrTango]

1.0.2 (2021-09-29)

  • fix python_requires definition in setup.py MrTango

  • general cleanup and add an uninstall profile MrTango

1.0.1 (2020-07-07)

  • Fix scale size in gallery grid view [MrTango]

1.0 (2020-07-07)

  • Cleanup, fixed travis setup and isort version in tox setup [MrTango]

1.0a4 (2020-06-12)

  • render img tag manually, to avoid having width and height attributes set [MrTango]

1.0a3 (2020-06-12)

  • Fix flexbin image height [MrTango]

  • Fix title and description in spotlight view [MrTango]

1.0a2 (2020-06-11)

  • Fix resources files in released package [MrTango]

  • Support also Collections not only Folders [MrTango]

1.0a1 (2020-06-11)

  • Initial release. [MrTango]

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

plone.gallery-1.1.6.tar.gz (4.5 MB view details)

Uploaded Source

File details

Details for the file plone.gallery-1.1.6.tar.gz.

File metadata

  • Download URL: plone.gallery-1.1.6.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for plone.gallery-1.1.6.tar.gz
Algorithm Hash digest
SHA256 f282a991fd8dc44e374e8b63d6aa9ae48fd467f63c996b307ba426a8f4af2d57
MD5 3018b575398b31543c06708828325745
BLAKE2b-256 533cccac31bdfd1574305fd8946eabf3f05cceb33f7fe9e7defafec75bf077b2

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