taitava/silverstripe-simplegallery

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 3

Type:silverstripe-vendormodule

3.0.0 2019-04-21 10:43 UTC

This package is auto-updated.

Last update: 2024-02-29 02:58:49 UTC


README

Uses lightbox 2 to create a simple image gallery in SilverStripe.

Sorry, a better readme is still under construction.

This is compatible with SilverStripe 4. If you need to use this with SilverStripe 3, check release line 2.x for older versions.

Configuration options

These are the default values:

Taitava\SimpleGallery\GalleryPage:
  use_bootstrap: true
  use_flexbox: true #Better center images vertically and horizontally. Newest browsers support this in 2016.
  require_bootstrap: false #Set to true if your theme does not include bootstrap already and if you want the module to inject boostrap classes to the GalleryPage. Has no effect if use_boostrap is false.
  allow_image_groups: false #If true, GalleryPages can be divided to multiple sections containing their own sets of images
  allow_direct_images: false #If true, in addition to putting images to groups, they can be directly linked to GalleryPage. If allow_image_groups is false, then this option is always true!
  
Taitava\SimpleGallery\GalleryImage:
  thumbnail_width: *your-custom-value in px*
  thumbnail_cols:
    xs: *your custom value from 1 to 12*
    sm: *your custom value from 1 to 12*
    md: *your custom value from 1 to 12*
    lg: *your custom value from 1 to 12*
    xl: *your custom value from 1 to 12*
  thumbnail_height: *your-custom-value in px*