andrewandante/silverstripe-theme-picker
Adds a theme dropdown to SiteConfig.
Maintainers
Package info
github.com/andrewandante/silverstripe-theme-picker
Type:silverstripe-vendormodule
pkg:composer/andrewandante/silverstripe-theme-picker
v1.0.1
2020-09-03 13:18 UTC
Requires
- php: >=5.6.0
- silverstripe/framework: ^4
- silverstripe/siteconfig: ^4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
BSD-3-Clause c48ea462b4e0bdc2f2291e9936c376f59208d24c
- Andrew Aitken-Fincham <andrew.woop@silverstripe.com>
This package is auto-updated.
Last update: 2026-05-29 01:00:33 UTC
README
Module to replicate the SS3 dropdown for themes in SS4.
Requirements
- SS4
- SiteConfig
Installation
composer require andrewandante/silverstripe-theme-picker
Config
This generates the dropdown from the SSViewer::themes() - so any theme you'd like to be selectable needs to be first present in something.yml.
SilverStripe\View\SSViewer: themes: - 'simple' - 'complicated' - '$default'
Will result in the dropdown options 'simple' and 'complicated'.
Caveats
- Currently hooks onto
PageController. - Hooks out the theme from the list and sticks it at the top.
