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

New Administration Themes


Reply

8 Posts   4070 Views

Avatar
4Design

4 March 2009 at 11:34pm Community Member, 1 Post

Hi Guys

Great CMS! We want to create some administration themes for Silverstripe. What is the best way to go about implementing custom admin themes without interfering with your core and frequent updates?

I see a normal theme is called as SSViewer::set_theme('theme_name'); and themes in mysite/cms would potientially override themes in the theme folder. Is there a way we can modularly create a theme in the themes folder called lets say cms_admin and call this like the site theme itself only now for the cms?

If not what is the best way to override the admin themes without replacing your default admin theme. If there is no current way we will gladly create one.

Let me know.

Regards
J

Avatar
PeterB

13 March 2009 at 9:42am Community Member, 18 Posts

Likewise, I'd like to know the answer!

Avatar
Willr

13 March 2009 at 3:43pm Forum Moderator, 5511 Posts

Im not fully sure it will work but for things like forum you can style it by overriding files with themes/yourtheme_forum/ so perhaps you can do a themes/yourtheme_cms/ folder and override the theme files?

The CSS paths are likely to be hardcoded to /cms/ so it might just require a slight tweak in that department

Avatar
181920

19 March 2010 at 9:05am Community Member, 8 Posts

This is of interest too, it would be cool to make it dead simple. Eventually allowing for templates to be built and available for download.

Avatar
UncleCheese

26 March 2010 at 5:43am 4085 Posts

It's pretty easy. There's a whole chapter in the SS book on how to do it. Just override the templates and CSS.

Avatar
jorrie

29 March 2010 at 7:25am Community Member, 40 Posts

@UncleCheese

Im also interested in modifying the backend admin and overwriting the theme.

I saw there is /cms/css /cms/images /cms/templates all making up the admin backend.

Is it possible to copy all those files to say themes/cms_admin/ and let it overwrite?

you say its in the docs, but I could not find it, perhaps you can give an example of where to copy the files to achieve the wanted results? Thanks in advanche!

Avatar
jorrie

29 March 2010 at 7:26am Community Member, 40 Posts

As a sidenode

* How could I set my custom admin backend "theme" for a certain usergroup only * ?
Anyone can answer that question?

I would like endusers to see a simplified backend but use the full normal admin backend "theme" myself

Avatar
biapar

20 July 2010 at 10:20pm Forum Moderator, 435 Posts

I think under mysite or under themes/mytheme_cms