Snippets - Little bits of code to make you happy
-
SnippetsRemove theme selector from SiteConfig
15 October 2010 | | | Supports v2.4
Tweet2.4 has introduced the SiteConfig, which by default allows the user to switch themes - if they exist.
It's incredibly useful to have this functionality built-in now, but for those that only have one theme for a site, it's a bit of unnecessary clutter. Here is how to remove it by using a decorator
Continue reading... -
SnippetsAn alternative to _ss_environment Files for easy 'Per Environment' Configuration
9 June 2011 | | | Supports v2.4, v2.3
TweetAlthough Silverstripe has a mechanism for alternative configuration per environment, using the ConfigureFromEnv() method in your mysite/_config.php file, it has its limitations and I have often read people complaining about it. Here is a simple yet powerful alternative to using SilverStripe environment files.
Continue reading...