Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Theme Switcher function from backend?!

Go to End

4 Posts   1433 Views


Community Member, 90 Posts

15 March 2010 at 11:43am

i have been used several different cms before and thought its quite important to have a theme switcher function from CMS backend. Won’t need to be so fancy, just a dropdown list can loop the themes in default themes directory and read the name off, and a save or apply button can saving changes

For general users, they don’t have too much deep understanding of the structure of silverstripe. Once they want to to change to an other theme, i think it’s could be easier for them just logging to cms admin, then select a theme in a dropdown list they want, rather than locate to .config file in mysite directory then change the SSviewer::set_theme("your theme").

Also for developer companies, this could also be another convenience, they could be able to provide another theme for clients' websites. The clients will choose which one to apply depends on their needs and requirements by simply clicking the theme switcher fromBackend.

Don’t know is has been achieved in 2.4 yet or not. But think it could be another beauty of the silverstripe.
Do like Silverstripe a lot.
Thanks for the great work from the developers all around the world.


Community Member, 63 Posts

15 March 2010 at 1:19pm


Forum Moderator, 922 Posts

15 March 2010 at 11:02pm

This is in 2.4 already, using the SiteConfig feature (the Site Content node in site tree holds a dropdown where you can choose the theme).


Community Member, 90 Posts

16 March 2010 at 9:13am

Hey,thanks. Its really great to see the 2.4 is taken the piece into action.
Thanks,BigChris. for your information on SSbits. Those gave me some hints for writting a theme swithcing code in CMS.
Thanks Sean,for ponting out the new features in SS2.4 thought its could be much easier for clients if we have the switching features.