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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Save theme in config file


Go to End


3 Posts   1743 Views

Avatar
shashuma

Community Member, 2 Posts

3 March 2010 at 11:58am

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

Community Member, 42 Posts

3 March 2010 at 6:02pm

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

Community Member, 2 Posts

4 March 2010 at 7:57am

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.