The use case: Primo Products • Two online shops for New Zealand and Australia – https://primopromo.com.au/ – https://www.primoproducts.co.nz/ • 99% same code • One installation needs other extensions • Some different configurations (currency) • Same design, some minor differences (address in footer…) 12.10.2019 www.silverstrip.es 2
With Silverstripe CMS 4 • More flexibility • One code base for both installations • Switch between shops via ENVIRONMENT variable • Sub-themes for shop specific tweaks 12.10.2019 www.silverstrip.es 4
Sub-Themes • SilverStripe cascades through a set of themes • The first valid file is returned • Only modify the files you need to change • Works for all files via URLResourceLoader • Templates, images, CSS, JS … 12.10.2019 www.silverstrip.es 9