taitava/silverstripe-simplegallery

安装: 31

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 1

开放问题: 3

类型:silverstripe-vendormodule

3.0.0 2019-04-21 10:43 UTC

This package is auto-updated.

Last update: 2024-08-29 03:58:09 UTC


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*