Skip to main content

Introduction

This addon register Galleria JQuery plugin in Plone’s resource registries.

version: 1.6.1

About Galleria

Galleria is a JavaScript image gallery framework built on top of the jQuery library. The aim is to simplify the process of creating professional image galleries for the web and mobile devices.

Requirements

  • Plone 5.2 (tested)

  • Python 3.7+ (tested)

How to install

https://secure.travis-ci.org/collective/collective.js.galleria.png

To enable this package in a buildout-based installation:

  1. Edit your buildout.cfg and add collective.js.galleria to the list of eggs to install:

[buildout]
...
eggs =
    collective.js.galleria

After updating the configuration you need to run ‘’bin/buildout’’, which will take care of updating your system.

Go to the ‘Site Setup’ page in a Plone site and click on the ‘Add-ons’ link.

Check the box next to collective.js.galleria and click the ‘Activate’ button.

Have an idea? Found a bug? Let us know by opening a support ticket.

Notes

Galleria in its way to manage theme parse all link tags to find the css attached to the theme. To make it work in production mode you must add themes javascript and css called by the template.

// Patch for Plone
// Escapes \+\+ from the urls \+\+resource\+\+, \+\+plone\+\+ and \+\+theme\+\+
// to avoid errors in RegExp.
_fix_plone_resource_url = (function(url) {
    return url.replace('\+\+plone\+\+', '\\+\\+plone\\+\\+').replace(
        '\+\+resource\+\+', '\\+\\+resource\\+\\+').replace(
            '\+\+theme\+\+', '\\+\\+theme\\+\\+')
});

...

// look for manually added CSS
$('link').each(function( i, link ) {
    // Patch for Plone
    reg = new RegExp( _fix_plone_resource_url(theme.css) );
    if ( reg.test( link.href ) ) {

        // we found the css
        css = true;

        // the themeload trigger
        _themeLoad( theme );

        return false;
    }
});

As you can see the original code has been patched to support ++resource++, ++plone++ and ++theme++ URLs.

Starting from version 1.6.1 this package is compatible only with Plone 5.2

Uglify Javascript

To uglify Javascript, we can use the following commands:

$ cd src/collective/js/galleria/resources
$ yarn install
$ yarn uglifyjs

This will generate galleria.min.js uglify based on galleria.js.

Credits

Companies

makinacom

Authors

Share and Enjoy

collective.js.galleria would not have been possible without the contribution of the following people:

You can find an updated list of package contributors on GitHub.

Development sponsored by Planet Makina Corpus and JeanMichel FRANCOIS aka toutpt <toutpt@gmail.com> .

Changelog

1.7.0 (2025-03-10)

  • Python 2.7 and 3.6 are no longer supported. [mauvictor]

  • Fix invalid specifier erro in python_requires. [mauvictor]

1.6.3 (2022-05-26)

  • Fix AttributeError when trying to create a Plone Site on an instance that has collective.js.galleria available. [wesleybl]

1.6.2 (2022-05-20)

  • Allows using resources with ++plone++ in CSS definition URL of Galleria theme. [wesleybl]

  • Use uglify-js node package to uglify Javascript. [wesleybl]

  • Use plone resource instead of browser resource. [wesleybl]

1.6.1 (2022-02-07)

  • Add support to Python 3.6, 3.7 and 3.8. [cleberjsantos]

  • Add support to Plone 5.2. [cleberjsantos]

  • Drop support for Plone 4.x [cleberjsantos]

  • Update galleria to 1.6.1 [clebejsantos]

  • Add replacement for //resource// links for manually added css back in the 1.6.1 galleria.js as written in the general notes (Based on changes in 0d2b832) [cleberjsantos, fredvd]

  • Add replacement in galleria.js for avoid error with jQuery load [cleberjsantos]

1.2.5 (2013-01-26)

  • Add plugins as browser resources directory [cleberjsantos]

  • Add travis-ci integration with test + python-validation [cleberjsantos][toutpt]

1.2.4 (2013-01-10)

  • Update galleria to 1.2.9

1.2.3 (2012-08-15)

  • Fix typo in previous release

1.2.2 (2012-08-15)

  • Update galleria to 1.2.8

1.2.1 (2012-07-10)

  • Fix CSS path to images loader and map.

1.2 (2012-04-05)

  • upgrade to galleria 1.2.7

1.1 (2012-02-22)

  • upgrade to galleria 1.2.6

1.0 (2012-01-04)

  • Initial release

Release files for collective.js.galleria 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.js.galleria 1.7.0
File Size Uploaded
collective_js_galleria-1.7.0.tar.gz 400.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.js.galleria 1.7.0
File Interpreter ABI Platform
collective_js_galleria-1.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 841.9 kB

Release files / collective_js_galleria-1.7.0.tar.gz

Download URL collective_js_galleria-1.7.0.tar.gz
Size 400.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f381d7e87ee143cf9a83eea54e213500601a119fd1c36aa0a2d00e0d450be82
BLAKE2b-256 checksum
How to use checksums
6a99fa386d49c36682d2e9ac4e76db61a0883795b497afc4125921c31dafb024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / collective_js_galleria-1.7.0-py3-none-any.whl

Download URL collective_js_galleria-1.7.0-py3-none-any.whl
Size 441.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59c6449d13813193721172bd145c3e0429983a7b1eb82ed301b9fa98d720f6a7
BLAKE2b-256 checksum
How to use checksums
f8f502b932a0b66446717734f6e9f6b22ca2e3472e8552739fa5acf351dfa676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.6.3

1 release file

1.6.2

1 release file

1.6.1

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page