Neos plugin to easily render image galleries
This package is auto-updated.
Last update: 2021-10-11 09:46:13 UTC
This package provides a node type to easily render image galleries.
The installation is done with composer:
composer require dl/gallery
DL: Gallery: loadGalleryCSS: false loadGalleryJS: false
Add a new gallery node to your page and use the inspector add images from the media module or upload them directly.
1. Use tags or collections to group images
The images to show in a gallery need to be grouped by a tag or collection. To group images, go to the media module and add a new tag or collection. Drag and drop images onto this or select it in the image detail view.
2. Chose a tag in the plugins inspector
Add a new gallery plugin to your page. You can now choose a tag or a collection as the gallery source in the inspector. The images will then be rendered equally within the gallery.
The thumbnails of the gallery are displayed squared using a bootstrap grid. The lightbox photoswipe is used to open a large representation of the image.
The themes are written mostly using Neos Fusion code. That means you can adjust the existing two themes from within your own package easily or build your own theme.
Building a new theme is as easy as adding a new fusion prototype to render the images and register your prototype in the settings:
DL: Gallery: themes: yourThemeName: label: 'Displays the images like I want' fusionPrototype: 'YourVendor.YourPackage:renderingPrototype' themeSettings: settingForMyTheme:SomeSetting
Your theme is now selectable in the Nodes theme selector.