2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

image

pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  • Sunday, April 22, 2018
  • by pstaender
  • Repository
  • 1 Watchers
  • 0 Stars
  • 164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 16 Versions
  • 6 % Grown

The README.md

Photogallery Module

Adds a page type to manage multiple images including description and other various options, (*1)

The following SiteTree page type will be added:, (*2)

  • GalleryPage / GalleryPageController
  • GalleryPageHolder
  • GalleryPicture

Requirements

  • SilverStripe 4+ (use v0.6.1 for SilverStripe 3.x)

Installation

  $ composer require pstaender/silverstripe-photogallerypage

Don't forget to run a dev/build?flush=all after installing., (*3)

Methods and Behaviour

All Pictures will be available through SortedPictures, with + for ascending (default) and - for descending. All Pictures are also available as URL. Let's assume the URL of your GalleryPage is http://localhost/photos and (an arbitary) image has the URLSegment example-picture, it will be available as http://localhost/photos/example-picture. This behaviour can be be switched on/off with picturesAccessibleViaURL in your config., (*4)

Usage in Template

Your Layout/GalleryPage.ss could be for instance:, (*5)

<article class="gallery">


$Title

<% with CurrentPicture %> <h2>Selected Picture</h2> $Image.ScaleHeight(200) <br /> <span class="previousPicture"> <% with Previous %> <a href="$Link">« $Image.ScaleHeight(100)</a> <% end_with %> </span> <span class="nextPicture"> <% with Next %> <a href="$Link">$Image.ScaleHeight(100) » </a> <% end_with %> </span> <% end_with %> <br />

All Pictures

<% loop SortedPictures %> <a href="$Link" class="$LinkingMode"> $ImagePreview <% if LinkingMode == 'current' %>selected<% end_if %> </a> <% end_loop %> </article>

Configuration

See in _config/photogallerypage.yml what possible configuration attributes are available for you to overwrite., (*6)

This project is under GNU General Public License v2, (*7)

Icons by Freepik (http://www.flaticon.com/packs/web-design-2), (*8)

The Versions

22/04 2018

dev-master

9999999-dev https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2 GPL-2.0-only

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

22/04 2018

v0.7.1

0.7.1.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GPL-2.0-only

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

07/04 2018

v0.7.0

0.7.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GPL-2.0-only

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

07/04 2018

dev-ss4

dev-ss4 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2 GPL-2.0-or-later GPL-2.0-only

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

05/04 2018

v0.6.1

0.6.1.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GPL-2.0-only

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

19/05 2017

v0.6.0

0.6.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

15/04 2017

v0.5.0

0.5.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

11/02 2017

v0.4.2

0.4.2.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

21/05 2016

v0.4.1

0.4.1.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

17/05 2016

v0.4.0

0.4.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

12/12 2015

v0.3.1

0.3.1.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

12/12 2015

v0.3

0.3.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

08/11 2015

v0.2

0.2.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

06/11 2015

v0.1

0.1.0.0 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

06/11 2015

v0.1-beta2

0.1.0.0-beta2 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

 

by Philipp Staender

gallery image silverstripe pictures imagegallery

09/10 2014

v0.1-beta1

0.1.0.0-beta1 https://github.com/pstaender/silverstripe-photogallerypage

Adds a page type to manage multiple images including description and other various options

  Sources   Download

GNU GENERAL PUBLIC LICENSE v2

The Requires

  • php >=5.2.0

 

by Philipp Staender

gallery image silverstripe imagegallery