Jump to:

1374 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » Save theme in config file

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1103 Views
  • shashuma
    Avatar
    Community Member
    2 Posts

    Save theme in config file Link to this post

    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.

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: Save theme in config file Link to this post

    Hi,

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

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

    cheers

  • shashuma
    Avatar
    Community Member
    2 Posts

    Re: Save theme in config file Link to this post

    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.

    1103 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.