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.

Template Questions /

choose template


Reply


4 Posts   1505 Views

Avatar
mdm

Community Member, 19 Posts

6 February 2009 at 2:35am

I searched some and I cant find out where in the admin panel you choose template.
I havent done anything after the installation so no mods are installed, I have uplaoded template to template dir on Ftp.

Avatar
Carbon Crayon

Community Member, 598 Posts

6 February 2009 at 2:58am

Hi mdm, welcome to Silverstripe

Silverstripe does not allow you to change themes from with the admin panel (at least not out of the box). Inorder to change the theme you need to change the following in your _config.php (located in /mysite or /tutorials depending on your selection at install)

SSViewer::set_theme('themeName');

The idea behind SS is to create a clear line between the developer and the content editor and the theme is something that (in SS's eyes) should be decided by the developer.

hope that helps :)

Avatar
mdm

Community Member, 19 Posts

6 February 2009 at 3:02am

oh!! That wasnt such a clear thing to think of from my part :)
Thanks for the help.

Tried it, "mysite" dir. Worked like a charm.
Will start testing what this one can do - have tested 5 CMS today and so far SS is the one winning the race I think.
Got so much potential and much more easy understanding than the others I tested.

Good forum aswell for help and fast reply! :)

Avatar
Carbon Crayon

Community Member, 598 Posts

6 February 2009 at 4:09am

Edited: 06/02/2009 4:11am

yep, SS is really a fantastic system and the community is building by the day :)

Just as a side note, if you want to just use the 'mysite' folder for your templates/images/css files then you don't need to set a theme at all.
SS will first look in your project directory (also set in _config.php at the top: $project='mysite') for these files and if it can't find them it will then check the current themes directory. So if you don't want to use the theme directory at all then you can just delete the 'SSViewer::set_theme' line from the _config.php :)