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.
- Blog (Winter.Blog)
- Hounddd lightGallery (Hounddd.lightGallery)
- Install dependencies:
php artisan plugin:install Winter.Blog
php artisan plugin:install Hounddd.lightGallery
- Install the plugin:
php artisan plugin:install Rezgui.BlogGallery
- Create your gallery on Hounddd lightGallery plugin
- Create or edit a blog post
- Goto "Manage" tab
- Select a gallery
You can insert the Hounddd lightGallery component inside your blogPost component html like this:
{% component 'gallery' gallery=post.lightgallery %}
- Get gallery info:
{{ post.lightGallery }}
- Get gallery images
{{ post.lightGallery.images }}