jinjie / silverstripe-banner
Adds SlickJS banner into any SilverStripe 4 pages
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
This package is auto-updated.
Last update: 2024-11-21 20:55:56 UTC
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