2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-theme-picker

Adds a theme dropdown to SiteConfig.

image

andrewandante/silverstripe-theme-picker

Adds a theme dropdown to SiteConfig.

  • Monday, November 13, 2017
  • by andrewandante
  • Repository
  • 1 Watchers
  • 3 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 19 % Grown

The README.md

SilverStripe Theme Picker

Scrutinizer Code Quality, (*1)

Module to replicate the SS3 dropdown for themes in SS4., (*2)

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., (*3)

SilverStripe\View\SSViewer:
  themes:
    - 'simple'
    - 'complicated'
    - '$default'

Will result in the dropdown options 'simple' and 'complicated'., (*4)

Caveats

  • Currently hooks onto PageController.
  • Hooks out the theme from the list and sticks it at the top.

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/andrewandante/silverstripe-theme-picker

Adds a theme dropdown to SiteConfig.

  Sources   Download

BSD-3-Clause

The Requires

 

theme silverstripe

13/11 2017

v1.0.0

1.0.0.0 https://github.com/andrewandante/silverstripe-theme-picker

Adds a theme dropdown to SiteConfig.

  Sources   Download

BSD-3-Clause

The Requires

 

theme silverstripe

13/11 2017

dev-develop

dev-develop https://github.com/andrewandante/silverstripe-theme-picker

Adds a theme dropdown to SiteConfig.

  Sources   Download

BSD-3-Clause

The Requires

 

theme silverstripe