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.

Themes /

Discuss SilverStripe Themes.

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

Can change a theme

Go to End

3 Posts   2173 Views


Community Member, 2 Posts

16 August 2009 at 7:12am

I'am new with Sylverstripe ! Good small cms and simple to try... The choice of template is good.. I'am use many CMS in the pass (drupal,Joomla,Ezpublish and more)

OK now problem. I have a download many model of template for testing but I can change. I make a 3 step simple


1.Simply unpack the contents of the zip file into the /themes directory in your SilverStripe installation.
2.Change to the theme by putting the following line in your ./mysite/_config.php:
SSViewer::set_theme("themename");3.Visit your homepage, ensuring you flush the cache (append ?flush=1 to the URL).

I have this message of any template a test

[Warning] None of these templates can be found:,
GET /SilverStripe-v2.3.3/

Line 175 in C:\wamp\www\SilverStripe-v2.3.3\sapphire\core\SSViewer.php

166 $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
167 unset($this->chosenTemplates[$templateFolder]);
168 }
169 }
171 if(isset($_GET['debug_request'])) Debug::message("Final template selections made: " . var_export($this->chosenTemplates, true));
173 }
175 if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
177 parent::__construct();
178 }
180 /**
181 * Returns true if at least one of the listed templates exists


* None of these templates can be found:,
Line 175 of SSViewer.php
* SSViewer->__construct(Array)
Line 308 of Controller.php
* Controller->getViewer(index)
Line 175 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 29 of ModelAsController.php
* ModelAsController->handleRequest(HTTPRequest)
Line 44 of RootURLController.php
* RootURLController->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/)
Line 118 of main.php

Suggestion : Sylverstripe is a small, simple cms ! In next release made a admin fonction for selection theme... Good inspiration for a next fonction about manage theme is Wordpress...



Forum Moderator, 5523 Posts

16 August 2009 at 6:19pm

Make sure your themes name has no spaces and is all lower case, then visit the site with ?flush=1 = to reload the template cache.


Community Member, 2 Posts

18 August 2009 at 1:09pm

Thank you sir !

This fonction work well. Sorry for my english, it's not my first language.

Many thank and good life at Silverstripe !!!