A personal repository of random information in compensation for a fatigued biological computer
Breaded IT » Web Development » SilverStripe CMS pre V3.0 » Silverstripe 2.2.x Notes » Themes
Enable switching of themes:
Thanks: http://www.silverstripe.org/archive/show/148425?showPost=149150
If you want to enable dynamic theme selection, you can add something like this in your mysite/_config.php:
if(isset($_REQUEST['theme'])){
SSViewer::set_theme($_REQUEST['theme']);
}
SSViewer::set_theme('blackcandy');
This will mean that if you visit
it will change the theme for you.Aaarg, but the above requires you to specify the theme or I get a blank page (no theme?) so I changed it to:
if(isset($_REQUEST['theme'])){
SSViewer::set_theme($_REQUEST['theme']);
}
else SSViewer::set_theme('Vista');
But that only gives me the new theme for the page I put theme=xxx etc, as soon as I click a link, it reverts to the else.. statement
Unarchive to /themes/..
Edit /mysite/_config.php
Vista:
Main menu: Room for 7 options along top row only before wraps and looks silly.
Has multiple levels on left hand side menu - oops, had to add more
Fonts hard to read.. changed now..
Evergreen:
has second level menu at the top..
Decayed:
Has an issue when you click a link and then click back to the home link, it comes up a blank page
AcidLemon:
Has base module only
Bloody Metamorph
Has no second levelmenus displayed