Search by

sunnysideup / prettyphoto

sunnysideup

adds 'pretty photo' - a jQuery library to your Silverstripe application

Package info

github.com/sunnysideup/silverstripe-prettyphoto

Type:silverstripe-vendormodule

pkg:composer/sunnysideup/prettyphoto

Statistics

Installs: 6 114

Dependents: 5

Suggesters: 0

Stars: 1

Open Issues: 0

4.1.0 2023-07-11 06:15 UTC

This package is auto-updated.

Last update: 2026-12-05 01:13:06 UTC


README

Build Status Scrutinizer Code Quality codecov.io

Latest Stable Version License Monthly Downloads

TL;DR

Adds the jQuery Pretty Photo extension to your Silverstripe Website.

SEE:

Developer

Nicolaas Francken [at] sunnysideup.co.nz

Requirements

see composer.json

Documentation

Please contact author for more details.

Any bug reports and/or feature requests will be looked at in detail

We are also very happy to provide personalised support for this module in exchange for a small donation.

Installation Instructions

  1. add module as per usual

  2. add the following stuff to controller class:

class Page_Controller extends ContentController {

    function init(){
        parent::init();
        PrettyPhoto::include_code();
    }

}

OR TO REMOVE IT LIKE THIS:

class MyPageWithoutPrettyPhoto_Controller extends Page_Controller {

function init(){
    parent::init();
    PrettyPhoto::block();
}

}

  1. in your templates, add (the rel="prettPhoto" is the magic part):

OR FOR A SET OF PHOTOS:

  1. Review configs and add entries to app/_config/config.yml (or similar) as necessary. In the _config/ folder of this module you can usually find some examples of config options (if any).

Config Examples

check http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ for more details.

Requirements

See composer.json for details

Suggested Modules

See composer.json for details

Installation

composer require sunnysideup/prettyphoto

Configuration

In the _config folder you will find the prettyphoto.yml.example file that shows options for the configuration of this module.

We recommend that you:

  1. copy these prettyphoto.yml.example files into your app/_config folder (where available - otherwise search for private static $ in the module to see what can be configured)
  2. remove the .example extension,
  3. delete the lines you do not care about, and
  4. adjust the configurations that you would like to use.

Contributing

We welcome any contributions. See CONTRIBUTING.md for more details.

Paid assistance

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: www.sunnysideup.co.nz. For exmaple, we can write tests for this module.

Author

Sunny Side Up Ltd.

Care to see more modules?

To find other modules, please visit ssmods.com.