jinjie/silverstripe-banner

Adds SlickJS banner into any SilverStripe 4 pages

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

v1.0.0 2018-12-20 06:32 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