1340 Posts in 432 Topics by 511 members
|Go to End|
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: Page.ss, ContentController.ss
Line 175 in C:\wamp\www\SilverStripe-v2.3.3\sapphire\core\SSViewer.php
166 $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
171 if(isset($_GET['debug_request'])) Debug::message("Final template selections made: " . var_export($this->chosenTemplates, true));
175 if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
181 * Returns true if at least one of the listed templates exists
* None of these templates can be found: Page.ss, ContentController.ss
Line 175 of SSViewer.php
Line 308 of Controller.php
Line 175 of Controller.php
Line 129 of RequestHandler.php
Line 122 of Controller.php
Line 29 of ModelAsController.php
Line 44 of RootURLController.php
Line 277 of Director.php
Line 121 of Director.php
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...
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 = site.com?flush=1 to reload the template cache.
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 !!!
|Go to Top|