Skip to main content

Register Galleria JQuery plugin in Plone

Project description

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.6+, 2.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.

// look for manually added CSS
$('link').each(function( i, link ) {
    // Patch for Plone
    reg = new RegExp( theme.css.replace('\+\+resource\+\+','\\+\\+resource\\+\\+') );
    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++ url.

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.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

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.js.galleria-1.6.2.tar.gz (393.4 kB view details)

Uploaded Source

File details

Details for the file collective.js.galleria-1.6.2.tar.gz.

File metadata

  • Download URL: collective.js.galleria-1.6.2.tar.gz
  • Upload date:
  • Size: 393.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/2.7.17

File hashes

Hashes for collective.js.galleria-1.6.2.tar.gz
Algorithm Hash digest
SHA256 d23ef488f4574df1d51b5a2c4761cbcc0ea920faa4a967a6b5eb4057647370e8
MD5 1fa2cbc8820033eb8c6542045df735d9
BLAKE2b-256 497cf40a02e1cf64a8871787f6ddbc644b123076792283b9d14215f24ccb3c7f

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