Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (25 sloc) 1.77 KB

Grav Image Collage Plugin

Create beautiful image collages for all your posts and pages

image

Usage

Twig syntax

{{ images_collage(page.media.images).html }}

{{ images_collage(page.media.images|slice(1, 5)).html }} //or slice

{{ images_collage(page.media.images, 3, 5, 900).html }} //or with params

Class diagram syntax

images_collage(images: ImageMedium[], column: int, borderSize: int, width: int): ImageMedium

Installation

Installing the Image Collage plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install image-collage

This will install the Image Collage plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/image-collage.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to image-collage. You can find these files either on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/image-collage

NOTE: This plugin is a modular component for Grav which requires Grav.