Page commentshttp://www.ssbits.com/home/
http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_1868
This is the SilverStripe 3 version of this:
_config.php
Object::add_extension('SiteConfig', 'SiteConfigDecorator');
SiteConfigDecorator.php
<?php
class SiteConfigDecorator extends DataExtension {
static $db = array();
public function updateCMSFields(FieldList $fields) {
$fields->removeByName('Theme');
$fields->removeByName('Tagline');
}
function __construct() {
parent::__construct();
}
}RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_1868http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_474
Thanks, Dan. Since reading your post, I use this all the time - it helps to clean up the admin interface - one less thing for the client to get confused about!RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_474http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_190
Its only useful when doing multi site setups.
This is a great tip though, customer generally will break anything if you give them access too.RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_190http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_116
Yes, I think the theme selection is a bit unnecessary. Never actually used it eithe. Better of using the space for some global information RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_116http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_104
Yes removing the theme selector makes alot of sense in most cases. SiteConfig is also a great place to put global information about the site so that you don't clutter up your homepage.RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_104http://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_102
Funnily enough I'd done exactly this myself on one of my sites about half an hour before you posted it. If you want to get rid of the other ones too, because you don't use them anywhere:
$fields->removeByName('Title');
$fields->removeByName('Tagline');RSSNamehttp://www.ssbits.com/snippets/2010/remove-theme-selector-from-siteconfig/#PageComment_102