titledk / silverstripe-backgroundimages
Define background image based on images that your users upload (WIP)
Package info
github.com/titledk/silverstripe-backgroundimages
Type:silverstripe-module
pkg:composer/titledk/silverstripe-backgroundimages
2.0
2016-09-07 16:02 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-01 03:04:41 UTC
README
Define background image based on images that your users upload.
Usage
/** * @return string */ public function getBackgroundCSS() { return BackgroundImageStyle::create( $this->PrimaryImage() ) ->getCSS(); }
<div style="$BackgroundCSS"> </div>
Identity: colors: primary: '#111' primary-gradient-start: '#222' primary-gradient-end: '#333'