titledk / silverstripe-backgroundimages
Define background image based on images that your users upload (WIP)
Installs: 263
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
This package is not auto-updated.
Last update: 2024-12-21 20:30:37 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'