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, biapar, Willr, Ingo, swaiba, simon_w

Save theme in config file


Reply

3 Posts   1120 Views

Avatar
shashuma

3 March 2010 at 11:58am Community Member, 2 Posts

Hi everyone,

After I change "SSViewer::set_theme('tutorial');" to "SSViewer::set_theme('myfirsttheme');" in the mysite/_config.php file, I get an error saying "Please check whether if this file is opened in another program" when I try to save it. But I dont have this file open in anywhere else.

Did anyone have the same problem? Help please.

Avatar
carlos

3 March 2010 at 6:02pm Community Member, 41 Posts

Hi,

Did you put this template under 'themes' folder with the right structure:

- themes
- myfirsttheme
- css
- images
- templates
- Includes
- Layout
- Page.ss

cheers

Avatar
shashuma

4 March 2010 at 7:57am Community Member, 2 Posts

I've got the problem solved. The reson was my Apache user account couldn't access the config file. So I copied the config file to my desktop and made the change then pasted the changed one back to the mysite folder. It works after that.