2017 © Pedro Peláez
 

silverstripe-vendormodule maximages

Simple image gallery for any dataobject

image

webmaxsk/maximages

Simple image gallery for any dataobject

  • Thursday, June 28, 2018
  • by silverstripesk
  • Repository
  • 2 Watchers
  • 0 Stars
  • 598 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

maximages

Images for any data object, (*1)

Installation

composer require "webmaxsk/maximages:*"

You can add images to any Page via CMS. You can disable images for any Page subclass by adding config to _config/config.yml:, (*2)

SilverStripe\ErrorPage\ErrorPage:
  images:
    enabled: false
SilverStripe\CMS\Model\VirtualPage:
  images:
    enabled: false
SilverStripe\CMS\Model\RedirectorPage:
  images:
    enabled: false

The maximum number of images can be also specified in the config using the following syntax (default is 20 for a page):, (*3)

SilverStripe\Blog\Model\BlogPost:
  images:
    count: 50

You can add images to any DataObject too, just extend DataObject with ObjectImagesExtension., (*4)

Usage

Add images to your template, (*5)

<% if SortedImages %>
    <ul class="small-block-grid-3">
        <% loop SortedImages %>
            <li>
                <a href="$Link" title="$Title">
                   $CroppedImage(200,200)
                </a>
            </li>
        <% end_loop %>
    </ul>
<% end_if %>

Add any lightbox you like, it is not included in this module!, (*6)

Example usage

check https://github.com/Webmaxsk/silverstripe-intranet-plate, (*7)

The Versions

28/06 2018

dev-master

9999999-dev

Simple image gallery for any dataobject

  Sources   Download

BSD-3-Clause

The Requires

 

by Pali Ondras
by Rastislav Brandobur

gallery silverstripe images photos

13/08 2017

dev-ss3

dev-ss3

Simple image gallery for any dataobject

  Sources   Download

BSD-3-Clause

The Requires

 

by Pali Ondras

gallery silverstripe images photos

07/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

Simple image gallery for any dataobject

  Sources   Download

BSD-3-Clause

The Requires

 

by Pali Ondras

gallery silverstripe images photos