GuLinux / grav-plugin-flickr

Grav cms plugin for flickr photosets, collections, single photos, and more
GNU General Public License v3.0
5 stars 2 forks source link

Grav Flickr Plugin

This plugin allows you to fetch flickr photos, photosets and collections, and display them in page.

The current template make use of featherlight, with the gallery option enabled, to open your images in a slideshow. If you wish to change this behaviour, please modify templates in the templates/partial directory.

Flickr data is provided via shortcodes, the shortcode-core plugin is therefore another dependency.

Quick usage

First you must configure your Flickr account, getting an API key and secret. You should register to the Flickr App Garden. You will also need to find out your user id from your Flickr username, some services like IdGettr can get this for you. Configure the flickr plugin (flickr.yaml in user/config/plugins/, or even better using Grav Admin), with these values:

flickr_api_key: "<your api key>"
flickr_api_secret: "<your api secret>"
flickr_user_id: "<your user id>"

To test the plugin you need to find the id of the Flickr daya you want to display. Currently the plugin supports single photos, photosets (albums) and collections. The id can usually be found on the url of the resource you are currently browsing.

Single Photo

[flickr-photo id=27313730662]

Photoset

[flickr-photoset id=72157669449388725]

Collections

[flickr-collection id=139636693-72157668802262691]

Advanced Options

Each shortcode accepts additional values beside the id parameter. This is a list for each shortcode.