Skip to content

jinjie/silverstripe-banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe 4 Banner

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