Responsive Image module for SilverStripe.
Open Issues: 3
This package is auto-updated.
Last update: 2023-03-15 01:28:40 UTC
Responsive Image module for SilverStripe implementing the bottom-padding technique
- SilverStripe 3.1.0+
Installation & Documentation
Clone Repository or use Composer to pull this module down to your silverstripe project
Any pages that are using the ResponsiveImage DataObject will need to include the following JS CSS on your site -
Instead of using the Image Object types on your page, use ResponsiveImage. ex.
private static $has_one = array( 'HeroImage' => 'ResponsiveImage' );
Inside your Templates, to render the proper output you would then call -
This Module was written and inspired from the padding-bottom hack that is documented at -