2017 © Pedro Peláez
 

silverstripe-module silverstripe-gallery

A new page type that embeds a responsive and touch-enabled image gallery with strip thumbnail navigator and zoomable slides

image

entidi/silverstripe-gallery

A new page type that embeds a responsive and touch-enabled image gallery with strip thumbnail navigator and zoomable slides

  • Tuesday, February 9, 2016
  • by ntd
  • Repository
  • 1 Watchers
  • 2 Stars
  • 186 Installations
  • Scheme
  • 0 Dependents
  • 1 Suggesters
  • 4 Forks
  • 0 Open issues
  • 10 Versions
  • 2 % Grown

The README.md

Silverstripe Gallery

A new page type (_GalleryPage_) that provides everything needed to manage a photo gallery., (*1)

You can do bulk uploads and reorder the images by dragging and dropping their thumbnails in a dedicated tab (_Gallery_) inside the CMS. The same image can be shared among multiple galleries., (*2)

Usage

You can write your own templates and support the JavaScript library of your choice. Out of the box the Fotorama library is used. You can embed the default gallery block in your pages by including ContentGallery.ss, e.g.:, (*3)

<%-- This is a typical Page.ss --%>
<h1>$Title</h1>
<div class="gallery">
    <% include ContentGallery.ss %>
</div>
<div class="content">
    $Content
</div>

Keep in mind the default templates only use the Height and ThumbnailHeight settings: they must be set to a value greater than 0 or an error will be generated. By default they should be set by the CMS to 400 and 64 respectively., (*4)

Alternatively, the GalleryPage.ss layout template is provided. It renders a full (standard) page, though it works out of the box only with silverstrap because it relies on some convention adopted by that theme., (*5)

Configuration

This module adds some field to the Settings tab. This will allow to customize some aspect of the gallery at run time on a per page basis, e.g. the height of the thumbnail strip, the height of the image slide and a flag to show or hide the captions., (*6)

The fallback values can be customized too by leveraging the SilverStripe configuration API. Just create your own YAML file in mysite/_config, e.g.:, (*7)

---
Name: DefaultSettings
After:
  - 'gallery/*'
---
GalleryPage:
  defaults:
    Captions: false
    Height: 480
    ThumbnailWidth: 0
    ThumbnailHeight: 80

The above settings will be applied to every instance of the GalleryPage class., (*8)

Author

Although the project originally started as a fork of silverstripe-gallery by i-lateral, the actual code has been rewrote almost from scratch by ntd and, apart the name, practically everything else has changed., (*9)

The project home page is shared by other SilverStripe modules and themes., (*10)

To check out the code, report issues or propose enhancements, go to the dedicated tracker. Alternatively, you can do the same things by leveraging the official github repository., (*11)

Installation

The gallery module is implemented as an extension of silverstripe-carousel, so you must install it first. This in turn will install the sortablefile module that provides the drag and drop reordering feature., (*12)

To install silverstripe-gallery itself you should proceed as usual: drop the directory tree in your SilverStripe root and do a /dev/build/. You will gain the new GalleryPage type in the CMS., (*13)

If you use composer, the dependencies will be pulled-in automatically, so you could just run the following command:, (*14)

composer require entidi/silverstripe-gallery dev-master

The Versions

09/02 2016

dev-dev

dev-dev http://silverstripe.entidi.com/

A new page type that embeds a responsive and touch-enabled image gallery with strip thumbnail navigator and zoomable slides

  Sources   Download

BSD-3-Clause

The Requires

 

bootstrap gallery silverstripe colorbox silverstrap fotorama

17/12 2015

dev-master

9999999-dev http://silverstripe.entidi.com/

A new page type that embeds a responsive and touch-enabled image gallery with strip thumbnail navigator and zoomable slides

  Sources   Download

BSD-3-Clause

The Requires

 

bootstrap gallery silverstripe colorbox silverstrap fotorama

30/06 2015

3.1.0

3.1.0.0 http://silverstripe.entidi.com/

A new page type that embeds a responsive and touch-enabled image gallery with strip thumbnail navigator and zoomable slides

  Sources   Download

BSD-3-Clause

The Requires

 

bootstrap gallery silverstripe colorbox silverstrap fotorama

07/04 2015

3.0.3

3.0.3.0 http://silverstripe.entidi.com/

A Silverstripe image gallery with sortable images

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

19/01 2015

3.0.2

3.0.2.0 http://silverstripe.entidi.com/

A Silverstripe image gallery with sortable images

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

30/09 2014

3.0.1

3.0.1.0 http://silverstripe.entidi.com/

A Silverstripe image gallery with sortable images

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

29/09 2014

2.0.1

2.0.1.0 http://silverstripe.entidi.com/

A Silverstripe image gallery with sortable images

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

27/09 2014

2.0.0

2.0.0.0 http://silverstripe.entidi.com/

A Silverstripe image gallery with sortable images

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

31/08 2014

1.99.0

1.99.0.0 http://github.com/i-lateral/silverstripe-gallery

A Silverstripe image gallery allowing multi image upload and defaults to using coffeescriper ad gallery

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe

20/05 2014

dev-upstream

dev-upstream http://github.com/i-lateral/silverstripe-gallery

A Silverstripe image gallery allowing multi image upload and defaults to using coffeescriper ad gallery

  Sources   Download

BSD-3-Clause

The Requires

 

gallery silverstripe