PHPackages                             purplespider/silverstripe-elemental-basic-gallery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. purplespider/silverstripe-elemental-basic-gallery

ActiveSilverstripe-vendormodule[Image &amp; Media](/categories/media)

purplespider/silverstripe-elemental-basic-gallery
=================================================

Basic Photo Gallery Block

4.0.0(1y ago)14851BSD-3-ClausePHP

Since Mar 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/purplespider/silverstripe-elemental-basic-gallery)[ Packagist](https://packagist.org/packages/purplespider/silverstripe-elemental-basic-gallery)[ Docs](https://github.com/purplespider/silverstripe-basic-galleries)[ RSS](/packages/purplespider-silverstripe-elemental-basic-gallery/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (9)Used By (0)

Basic Image Gallery Elemental Block (Silverstripe)
==================================================

[](#basic-image-gallery-elemental-block-silverstripe)

Introduction
------------

[](#introduction)

A simple image gallery block for Silverstripe CMS's Elemental module. Uses [Basic Image Gallery Extension](https://github.com/purplespider/silverstripe-basic-gallery-extension) to provide bulk uploading, drag &amp; drop reordering and inline caption editing.

The template displays the images as square thumbnails with a link to larger versions and works wirth the [Fancybox](https://fancyapps.com/fancybox/) lightbox module out of the box. The template can be easily overridden to work with the lightbox of your choice or to make a slideshow, etc.

[![Screenshot](screenshot.png)](screenshot.png)

Maintainer Contact
------------------

[](#maintainer-contact)

- James Cocker ()

Requirements
------------

[](#requirements)

- Silverstripe 6

Installation Instructions
-------------------------

[](#installation-instructions)

```

composer require purplespider/silverstripe-elemental-basic-gallery ^4

```

Customising
-----------

[](#customising)

You can easily customise the functionality using a [Silverstripe Extension](https://docs.silverstripe.org/en/5/developer_guides/extending/extensions/) and/or [overriding the template](https://docs.silverstripe.org/en/5/developer_guides/templates/template_inheritance/).

For example, say you wished to add the ability to also display the images in a slider, and your website uses Bootstrap.

First you would create an extension to add a checkbox to the block's CMS fields:

**app/src/Extensions/ImageGalleryBlockExtension.php**

```
