taitava / silverstripe-simplegallery
3.0.0
2019-04-21 10:43 UTC
Requires
- bummzack/sortablefile: *
- silverstripe/cms: ~4.0
- silverstripe/framework: ~4.0
Suggests
- undefinedoffset/sortablegridfield: Makes it possible to drag & drop image groups to different order. Not needed if you do not use image groups at all.
README
使用 lightbox 2 在 SilverStripe 中创建简单的图片画廊。
抱歉,更好的 README 文件仍在建设中。
此版本与 SilverStripe 4 兼容。如果您需要与 SilverStripe 3 一起使用,请检查 2.x 版本的发布行。
配置选项
这些是默认值
Taitava\SimpleGallery\GalleryPage: use_bootstrap: true use_flexbox: true #Better center images vertically and horizontally. Newest browsers support this in 2016. require_bootstrap: false #Set to true if your theme does not include bootstrap already and if you want the module to inject boostrap classes to the GalleryPage. Has no effect if use_boostrap is false. allow_image_groups: false #If true, GalleryPages can be divided to multiple sections containing their own sets of images allow_direct_images: false #If true, in addition to putting images to groups, they can be directly linked to GalleryPage. If allow_image_groups is false, then this option is always true! Taitava\SimpleGallery\GalleryImage: thumbnail_width: *your-custom-value in px* thumbnail_cols: xs: *your custom value from 1 to 12* sm: *your custom value from 1 to 12* md: *your custom value from 1 to 12* lg: *your custom value from 1 to 12* xl: *your custom value from 1 to 12* thumbnail_height: *your-custom-value in px*