soee/gallery 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soee/gallery

最新稳定版本:1.0.0-alpha1

Composer 安装命令:

composer require soee/gallery

包简介

Simple and flexible image gallery for Neos CMS

README 文档

README

This package provides a simple implementation of Gallery and Albums for the Neos CMS.

There are 2 main elements provided by this package:

  • Album - allows to render a list of images (assets)
  • Gallery - allows to render a list of albums

Components

Album

It is possible to use the Album content element, which can be inserted on any page.
This component has all the same properties as the Album document, which means that
it is possible to render assets by selection, tags and collections.

Assets inside albums can be fetched by:

  • manual selection
  • tags [1..n]
  • asset collections [1..n]

The album items can be sorted (ordered) by file name, title, modification date etc.
It is also possible to limit the number of items to be fetched and rendered.

Gallery

@todo

Pages (document types)

@todo

Settings

The package provides a few settings, which can be adjusted in the Settings.yaml file.

Soee:
  Gallery:
    album:
      thumbnail:
        width: 200
        height: 200
        crop: true
      sortBy: 'title'
      sortOrder: 'ASC'
      limit: 10

Integrations

This package does not provide any ready to use integrations with JavaScript libraries to present images.
It is up do developer to decide which library to use and how to integrate it with the package.
This section though provides a few examples of how to integrate the package with some of the popular libraries.

Fullscreen Lightbox (fslightbox)

Website: https://fslightbox.com/

The very basic setup will require to include the library in the project and then to use the data-fslightbox attribute
to set images that should be displayed in the lightbox. Since the Album single item rendering is done by the AlbumItem component,
it is possible to add the data-fslightbox attribute to the linkAttributes property. This way all the linked images will have
this same value for this attribute, and will be displayed in the lightbox as connected group of images (you can click prev/next etc.).

prototype(Soee.Gallery:Presentation.Fragment.AlbumItem) {
  linkAttributes {
    data-fslightbox = ${String.md5(q(node).property('_identifier'))}
  }
}

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-03-08