246

Product support

Visit this product's website for support.

  • Added on Mar 16, 2016
  • Current version: 1.0.1
  • Platform Compatibility
    v3.x not tested
    v2.x not tested
    v1.x use latest
  • Created by
  • Public repository

Categories

Introduction

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 RainLab.Blog
    • php artisan plugin:install Raviraj.Rjgallery
  • Install the plugin:
    • php artisan plugin:install Martin.BlogGallery

Use

  1. Create your gallery on RJ Gallery 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 RJ Gallery component inside your blogPost component html like this:

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

Access gallery object

  • Get gallery info:

    {{ post.rjgallery }}
  • Get gallery images

    {{ post.rjgallery.images }}
  • Found the plugin useful on 17 Jan, 2018

    One year later - I managed it by adding the component 'galleryId' from rjgallery to the cms page for the single Blog Post. There I did all the settings but deleted the idGallery.

    In the partial template blogPost/default.htm I entered {% component 'galleryId' idGallery=post.rjgallery_id %}

    Hope this post helps others looking for some way to get it to work. Thx to Michael Wanyoike - his comment helped me :)

  • Found the plugin useful on 12 Nov, 2017

    别忘了,先要在CMS的Post页面上添加一个rjgallery组件:gallery或galleryslug。

  • Found the plugin useful on 25 Oct, 2016

    Excellent! Works perfectly.

    ~ Thanks for the clarity Michael Wanyoike.

  • Found the plugin useful on 2 Aug, 2016

    Managed to get it to work. Though the documentation isn't clear. The component should be added on the Blog Post CMS page, not on the post itself. Also the RJ Gallery component should be dragged onto the CMS page, the gallery id doesn't matter, it won't affect posts that haven't specified the gallery id.

1.0.1

Fix for plugin uninstall

Mar 20, 2016

1.0.0

First version of Blog with RJGallery

Mar 15, 2016