Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Changing admin theme

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1031 Views
  • RossM
    Community Member
    2 Posts

    Changing admin theme Link to this post

    Hi, I want to override a core admin template (WidgetAreaEditor.ss), but I am not sure how to go about it. I am setting my theme in _config.php, but I notice that in LeftAndMain.php's init() method, the following happens:

          // The user's theme shouldn't affect the CMS, if, for example, they have replaced
          // TableListField.ss or Form.ss.

    This seems to make it difficult to set the admin theme, I have tried using an Extension to LeftAndMain, but its init() method is called before that of LeftAndMain, meaning I can't set the theme here.

    Has anyone else managed to change/override the admin theme successfully?



  • Martijn
    Community Member
    271 Posts

    Re: Changing admin theme Link to this post

    You can create a copy of WidgetAreaEditor.ss in mysite/templates. SS will use that template instead..

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.