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
- Blog (RainLab.Blog)
- RJ Gallery (Raviraj.Rjgallery)
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
- Create your gallery on RJ Gallery plugin
- Create or edit a blog post
- Goto "Manage" tab
- 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 }}
-
Anschinsan
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。
-
Sam
Found the plugin useful on 25 Oct, 2016
Excellent! Works perfectly.
~ Thanks for the clarity Michael Wanyoike.
-
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 |