wernerkrauss / silverstripe-headergallery
SS4 compatible simple header gallery
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
This package is auto-updated.
Last update: 2024-12-21 22:13:18 UTC
README
A very simple SilverStripe4 compatible module for a simple (header) gallery.
Usage
in your templates you can use $HeaderGallery
to get the gallery of the current Page
If you want fallback for parent pages or the home page you can use $HeaderGalleryPics
As this module adds a many-many relation to Page you can reuse Images on different Pages.
Note
Sorting is currently broken as SortableRows is not SS4 ready yet.
Todo
[ ] add GridfieldGalleryTheme when it's SS4 ready
[ ] add GridfieldSortableRows when it's SS4 ready
[ ] unit tests of course (at least for the fallback method)