rezgui/bloggallery

将 Hounddd lightGallery 与博客文章关联

安装: 0

依赖关系: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 2

类型:winter-plugin

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

This package is auto-updated.

Last update: 2024-09-08 02:02:46 UTC


README

简介

受 skydiver/october-plugin-bloggallery 启发,此插件将 "RJ Gallery" 与博客插件文章关联。

您将能够从 blogPost 组件中操作画廊。

要求

安装

  • 安装依赖项
    • php artisan plugin:install Winter.Blog
    • php artisan plugin:install Hounddd.lightGallery
  • 安装插件
    • php artisan plugin:install Rezgui.BlogGallery

使用

  1. 在 Hounddd lightGallery 插件上创建您的画廊
  2. 创建或编辑一篇博客文章
  3. 转到 "管理" 选项卡
  4. 选择一个画廊

在文章页面上显示画廊

您可以在 blogPost 组件的 HTML 中插入 Hounddd lightGallery 组件,如下所示

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

访问画廊对象

  • 获取画廊信息
{{ post.lightGallery }}
  • 获取画廊图片
{{ post.lightGallery.images }}