huubl/silverstripe-elemental-grid
Composer 安装命令:
composer require huubl/silverstripe-elemental-grid
包简介
Elemental grid module
README 文档
README
Introduction
This module converts the elemental module (https://github.com/dnadesign/silverstripe-elemental) into a grid module
Requirements
- SilverStripe CMS ^4.0
- dnadesign/silverstripe-elemental dev-master
- Frontend css supporting a bootstrap style grid system (col-xs-X col-sm-X col-md-X col-lg-X visible-XS/SM/MD/LG hidden-XS/SM/MD/LG and col-xs-offset-X etc)
Installation
composer require "thewebmen/silverstripe-elemental-grid" "dev-master"
After that follow the steps from the elemental documentation installation section after the composer require: https://github.com/dnadesign/silverstripe-elemental
Settings
TheWebmen\ElementalGrid\Extensions\BaseElementExtension num_columns (default: 12)
Add settings to rows
- Add a dataextension to TheWebmen\ElementalGrid\Models\ElementRow
- Copy the template TheWebmen/ElementalGrid/Models/ElementRow.ss to your theme
Nested rows/grids
To create nested rows or grids you need to create a grid element ss the elemental documentation for more information.
Disallow rows
See the elemental documentation: https://github.com/dnadesign/silverstripe-elemental and add TheWebmen\ElementalGrid\Models\ElementRow to the disallowed_elements
TODO
- Break point switch in grid view (lg,md,sm,xs)
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-01-29
