heyday/silverstripe-adaptivecontent
最新稳定版本:4.0.0-alpha
Composer 安装命令:
composer require heyday/silverstripe-adaptivecontent
包简介
SilverStripe Adaptive Content
README 文档
README
Generic sets of fields as data extensions. Originally intended to be the back-end for an "adaptive" content strategy (content adapting to device/context), but generally quite useful as a set of common, reusable fields.
Installation (with composer)
$ composer require heyday/silverstripe-adaptivecontent
Usage
The main component of this module can be used simply by adding the
AdaptiveContent extension to a DataObject or Page instance:
SomeDataObject: extensions: - Heyday\AdaptiveContent\Extensions\AdaptiveContent
The other field extensions work in the same way:
SomePage: extensions: - Heyday\AdaptiveContent\Extensions\AdaptiveContent - Heyday\AdaptiveContent\Extensions\AdaptiveContentHierarchy - Heyday\AdaptiveContent\Extensions\AdaptiveContentRelated('Page')
Example use
See heyday/silverstripe-slices for an example use of this module.
Unit testing
composer install --dev vendor/bin/phpunit
统计信息
- 总下载量: 1.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-15