dl/gallery
Composer 安装命令:
composer require dl/gallery
包简介
Neos plugin to easily render image galleries
README 文档
README
Neos Gallery
This package provides a node type to easily render image galleries.
Installation and integration
The installation is done with composer:
composer require dl/gallery
(De)activate CSS / Javascript autoloading
By default, the galleries CSS and JavaScript files are added to the header and footer includes of your page automatically on pages, where an instance of the gallery plugin is added. If you want to compile the JS / CSS into your pages main files you can deactivate this behavior via settings:
DL:
Gallery:
loadGalleryCSS: false
loadGalleryJS: false
Show a set of images as a gallery
Select images to be displayed in the gallery
Add a new gallery node to your page and use the inspector add images from the media module or upload them directly.
Use Tags or collections
1. Use tags or collections to group images
The images to show in a gallery need to be grouped by a tag or collection. To group images, go to the media module and add a new tag or collection. Drag and drop images onto this or select it in the image detail view.
2. Chose a tag in the plugins inspector
Add a new gallery plugin to your page. You can now choose a tag or a collection as the gallery source in the inspector. The images will then be rendered equally within the gallery.
Gallery Presentation
Theme Bootstrap Lightbox
The thumbnails of the gallery are displayed squared using a bootstrap grid. The lightbox photoswipe is used to open a large representation of the image.
Theme Justified
Uses the jquery plugin justified.js to display the thumbnails and also photoswipe as lightbox.
Build your own theme
The themes are written mostly using Neos Fusion code. That means you can adjust the existing two themes from within your own package easily or build your own theme.
Building a new theme is as easy as adding a new fusion prototype to render the images and register your prototype in the settings:
DL:
Gallery:
themes:
yourThemeName:
label: 'Displays the images like I want'
fusionPrototype: 'YourVendor.YourPackage:renderingPrototype'
themeSettings:
settingForMyTheme:SomeSetting
Your theme is now selectable in the Nodes theme selector.
dl/gallery 适用场景与选型建议
dl/gallery 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 17k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2015 年 10 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dl/gallery 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dl/gallery 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 15
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-23

