Kirby-Plugins

paruch/kirby-gallery (2.0.0)

Published 2025-03-14 20:46:54 +01:00 by paruch

Installation

{
	"repositories": [{
			"type": "composer",
			"url": ""
		}
	]
}
composer require paruch/kirby-gallery:2.0.0

About this package

Foto Gallery with lightbox effect

Kirby Gallery

Beschreibung

Stellt eine Foto-Gallery dar, welche über einen KirbyTag integriert werden kann.

Verwendung

  • Snippets importieren
// im Header
snippet('paruch.gallery.imports.css')

// am Ende vom Body
snippet('paruch.gallery.imports.js')
  • mögliche KirbyTags
(gallery: all)  # Includes all images of the page
(gallery: 1.png 2.png 3.png)  # Includes only selected images
(gallery: all page: projects/a)  # Includes all images of the page with the given uri

(gallery: all limit: 2)  # Only shows thumbs of the first two images

(gallery: all order: random)  # Shuffles all images
(gallery: all order: reverse)  # Displays all images in reverse order

(gallery: all cols: 2 4)  # Sets cols to ['min' => 2, 'max' => 4]
(gallery: all cols: 3)  # Sets cols to ['min' => 3, 'max' => 3]
(gallery: all mobilecols: 1 2)  # Sets mobilecols to ['min' => 1, 'max' => 2]

(gallery: all stretch: last)  # Stretch trailing items instead of first
(gallery: all stretch: none)  # Disable stretching

(gallery: all class: my-class id: my-id)  # Applied a class & id to the gallery-wrapper

Dependencies

Dependencies

ID Version
getkirby/composer-installer ^1.1
Details
Composer
2025-03-14 20:46:54 +01:00
5
Pascal Rusch
MIT
337 KiB
Assets (1)
Versions (5) View all
3.0.2 2025-08-04
3.0.1 2025-04-08
3.0.0 2025-04-01
2.0.2 2025-03-14
2.0.0 2025-03-14