sunnysideup / prettyphoto
adds 'pretty photo' - a jQuery library to your Silverstripe application
Package info
github.com/sunnysideup/silverstripe-prettyphoto
Type:silverstripe-vendormodule
pkg:composer/sunnysideup/prettyphoto
Requires
- silverstripe/recipe-cms: ^4.0 || ^5.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
TL;DR
Adds the jQuery Pretty Photo extension to your Silverstripe Website.
SEE:
- http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
- http://jquery-plugins.net/prettyphoto-jquery-lightbox-clone
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
-
add module as per usual
-
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();
}
}
- in your templates, add (the rel="prettPhoto" is the magic part):
OR FOR A SET OF PHOTOS:
- 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:
- copy these
prettyphoto.yml.examplefiles into yourapp/_configfolder (where available - otherwise search forprivate static $in the module to see what can be configured) - remove the .example extension,
- delete the lines you do not care about, and
- 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.
