rezgui/bloggallery

Associate a Hounddd lightGallery to a blog post

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Type:winter-plugin

dev-master 2024-01-08 00:36 UTC

This package is auto-updated.

Last update: 2024-05-08 01:21:55 UTC


README

Introduction

Inspired from skydiver/october-plugin-bloggallery, This plugin associates a "RJ Gallery" to a Blog plugin post.

You will be able to work with the gallery from the blogPost component.

Requirements

Installation

  • Install dependencies:
    • php artisan plugin:install Winter.Blog
    • php artisan plugin:install Hounddd.lightGallery
  • Install the plugin:
    • php artisan plugin:install Rezgui.BlogGallery

Use

  1. Create your gallery on Hounddd lightGallery plugin
  2. Create or edit a blog post
  3. Goto "Manage" tab
  4. Select a gallery

Display gallery on post page

You can insert the Hounddd lightGallery component inside your blogPost component html like this:

{% component 'gallery' gallery=post.lightgallery %}

Access gallery object

  • Get gallery info:
{{ post.lightGallery }}
  • Get gallery images
{{ post.lightGallery.images }}