Skip to content

A small kirbytext extension to generate little fancybox galleries with thumbs on the fly.

Notifications You must be signed in to change notification settings

chbach/kirby-minigallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

kirby-minigallery

A small kirbytext extension to generate little fancybox galleries with thumbnails on the fly.

Requirements

You need to have the Thumb plugin in your plugin folder. Otherwise, this plugin won't work.

You have to include jQuery and FancyBox in your site.

Then, all you have to do is to copy the kirbytext.extended.php in your plugin directory.

Usage

First of all, you need to initialize the fancy box in a way like this:

<script type="text/javascript">
	$(document).ready(function() {
		$(".fancybox").fancybox({
			prevEffect : 'fade',
			nextEffect : 'fade'
		});
	});
</script>

You can create a simple gallery with a kirby tag in your text file like this:

(minigallery:01.jpg|02.jpg|03.jpg)

If you want to specify some titles, you can do it like this:

(minigallery:01.jpg|02.jpg|03.jpg titles:foo|bar|title)

If you want to have more than one gallery and don't want them to be connected through the fancybox, you can specify another rel like this:

(minigallery:01.jpg|02.jpg|03.jpg rel:first)
(minigallery:01.jpg|02.jpg|03.jpg rel:second)

To disable the link to the original you can set fancybox:false.

For a custom CSS class use class:classname.

The rest of the available options relate to the Thumb plugin. So it is possible to set the maximum width and height like this: width:240 and height:320.

About

A small kirbytext extension to generate little fancybox galleries with thumbs on the fly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages