Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Skinning the CMS

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

Page: 1
Go to End
Author Topic: 949 Views
  • Mo
    Avatar
    Community Member
    508 Posts

    Skinning the CMS Link to this post

    Hi All,

    I was just wondering if there were any plans to make it easier to do this? Currently, as far as I can tell, the only way you can do this is to extend LeftAndMain, add some extra CSS files and overwrite the current styles. This doesn't feel like the most efficient way to skin it.

    It would be nice if you could add a "cms" skin to your theme, or maybe to your mysite and the sit would look for it. Or can you do something like this already and I am missing it?

    Cheers,

    Mo

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Skinning the CMS Link to this post

    Well you can template modules like the forum by defining a subtheme like themename_forum and copying template files into the revalant locations so I don't see why you couldn't do a themename_cms/ folder with the templates folder. The CSS / image / JS paths are all probably hard coded but you can define a editor.css file in your theme which the CMS will load, using this you could override the styles.

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: Skinning the CMS Link to this post

    Oh, thats a thought. I had forgotten about the old editor.css .

    It would be nice if there was a way to create 'skins', you could even have a 'CMS Skins' portal, similar to themes, modules and widgets.

    editor.css should do me though, to .

    Mo

  • cms
    Avatar
    Community Member
    3 Posts

    Re: Skinning the CMS Link to this post

    Hi There,

    I'm brand new to Silverstripe and was wondering how you get the rules in editor.css to load in the manager?

    Have tried !important etc but suspect I'm missing something - should the rule take effect automatically or do you have to configure something somewhere?

    Cheers

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Skinning the CMS Link to this post

    The rules should be automatic. Is the editor.css being correctly loaded? Or are your rules being overridden (firebug is a good tool for checking this).

  • cms
    Avatar
    Community Member
    3 Posts

    Re: Skinning the CMS Link to this post

    Thanks for the reply,

    A quick scan in Firebug reveals that none of my new rules from editor.css are being loaded/overridden.

    If I put the rules at the bottom of layout.css then they get loaded but some are not - I guess because other style sheets are being loaded after layout.css?

    Cheers

    949 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.