Download the PHP package silverstripe-australia/silverstripe-partial-themes without Composer
On this page you can find all versions of the php package silverstripe-australia/silverstripe-partial-themes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silverstripe-australia/silverstripe-partial-themes
More information about silverstripe-australia/silverstripe-partial-themes
Files in silverstripe-australia/silverstripe-partial-themes
Package silverstripe-partial-themes
Short Description A module that allows developers to defined just one a few template over-rides for the base theme templates, applied to just sub-trees of a site
License BSD-3-Clause
Homepage https://github.com/nyeholt/silverstripe-partial-themes
Informations about the package silverstripe-partial-themes
silverstripe-partial-themes
A module for managing themes a little more flexibly; by applying a theme to a subtree of a site, by specifying just a partial set of templates to make up a 'theme', and by allowing code be bound to the theme implementation.
Partial Themes
Allows for the creation of themes that may override only a part of the 'main' theme. For example, assume you have /themes/simple bound as your main project theme, you can specify another theme alongside this which changes a single template. So assuming you wanted to create another theme, eg /themes/simplesimon that only differed in the way products were displayed, rather than specifying a whole new theme, you would provide just the required template.
Then, inside the CMS, the 'Partial theme' setting field would be set to 'simplesimon'.
Theme Helpers
Rather than specifying theme specific code in the page controller init method, the module looks for a {ThemeName}Helper
class to call for before init and after init.
Configuration
Project specific requirements
You must have the following defined for the controller(s) that will use partial themes; in particular, the Page_Controller class
Usage
Once enabled, Theme settings are available on a page's Settings tab.