This plugin provides a gallery Kirbytext tag for Kirby 2 CMS implementing the collage image galleries of Collage Plus
- Download Kirby Collage
- Copy the
site/plugins/gallery
directory tosite/plugins/
- Copy the
assets/gallery
directory toassets/
- Add CSS link to your header:
// site/snippets/header.php
echo css('assets/gallery/gallery.css');
- Add the following JS links to your header:
// site/snippets/header.php
echo js('//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'); // if jQuery isn't included already
echo js('assets/gallery/jquery.collagePlus.min.js');
echo js('assets/gallery/gallery.js');
Use (gallery: IMAGENAME|IMAGENAME|IMAGENAME)
inside your Kirbytext:
(gallery: forrest.jpg|IMG_673.jpg|lake.png)
You can also use the following for a gallery of all images of that page:
(gallery: all)
You can also use the following for a gallery of all images EXCEPT THE FIRST of that page:
(gallery: all-nofirst)