2017 © Pedro Peláez
 

silverstripe-module silverstripe-feature-banners

SilverStripe Feature Banners, with decorators for Image, Description, Primary & Secondary Links and Publish & Expiry dates

image

oilee80/silverstripe-feature-banners

SilverStripe Feature Banners, with decorators for Image, Description, Primary & Secondary Links and Publish & Expiry dates

  • Sunday, December 20, 2015
  • by oilee80
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Feature Banners plugin

Adds the ability to manage Banner's for DataObject's (mainly SiteTree DataObject's)., (*1)

Usage

Object::add_extension( 'Page', 'FeatureBannerDecorator' );

You can add extra fields to the FeatureBanner using further Decorators, some are included here, (*2)

  • FeatureBanner_Description_Decorator
    • Adds a Description Field (HTMLText)
  • FeatureBanner_Link_Decorator
    • Adds ability to link to a page on or off the site
  • FeatureBanner_MoreInfo_Decorator
    • Adds ability to link to another page on or of the site
  • FeatureBanner_Expiry_Decorator
    • Adds ability to set Publish & Expiry DateTimes for the Banner
  • FeatureBanner_CssClass_Decorator
    • Adds ability to set a css class to the FeatureBanner
    • Useful classes would be Dark and Light but others such as Left and Right may also be useful

Development

Grunt is used for building the CSS in this package from LESS, if you want to include the builtin CSS without including a separate CSS file then you can add css/less/feature-banners.less in your Gruntfile.js config, (*3)

The Versions

20/12 2015

dev-master

9999999-dev

SilverStripe Feature Banners, with decorators for Image, Description, Primary & Secondary Links and Publish & Expiry dates

  Sources   Download

BSD-3-Clause

The Requires

 

by Lee Bradley

module silverstripe feature banner banners