jinjie/silverstripe-banner
Composer 安装命令:
composer require jinjie/silverstripe-banner
包简介
Adds SlickJS banner into any SilverStripe 4 pages
README 文档
README
Adds SlickJS banner into any SilverStripe 4 pages
Installation
composer require jinjie/silverstripe-banner
How to use
Add extension
Add this to any page model
private static $extensions = [
SwiftDevLabs\SSBanner\Extension\BannerExtension::class,
];
or by configuration
Page:
extensions:
- SwiftDevLabs\SSBanner\Extension\BannerExtension
and run dev/build
Template
If you ever need to customise the mark up for the banner section, create a BannerTemplate.ss in templates folder.
Todo
- Configurable banner
- Add default style
- Add configuration to prevent including slick.css and/or slick-theme.css
- Add configuration to prevent including javascripts
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-20