huubl / silverstripe-photoswipe-elemental
Allows embedding of a simple Photoswipe-powered gallery on a page
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Language:SCSS
Type:silverstripe-vendormodule
Requires
- bummzack/sortablefile: ^2.0
- dnadesign/silverstripe-elemental: ^3.0
- silverstripe/cms: ^4.0
- silverstripe/vendor-plugin: ^1.0
This package is auto-updated.
Last update: 2024-12-23 00:43:07 UTC
README
Add a responsive image gallery to a page using the Photoswipe library in an Elemental Block.
Includes gallery functionality along with a lazy-loader for the thumbnails to help with page-load efficiency.
Requirements
- Silverstripe 4.x
- bummzack/sortablefile
- dnadesign/silverstripe-elemental ^3 || ^4
Installation
- Install the code with
composer require dorsetdigital/silverstripe-photoswipe-elemental
- Run a
dev/build?flush
to update your project
Usage
Once you have installed the module, you can simply add the new block to any Elemental page.
The template which produces the standard gallery markup can be overridden, but please note that some of the markup structure is required to make everything work!
Credits
- The superb PhotoSwipe library - http://photoswipe.com/
- Bummzack's sortable file extension for SS4 - https://github.com/bummzack/sortablefile
- Werner Krauss for his translation work and Elemental 4 updates - https://github.com/wernerkrauss