Jump to:

5539 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Customize backend style and UI

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

Page: 1 2
Go to End
Author Topic: 4535 Views
  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Customize backend style and UI Link to this post

    Interesting. Everything you mentioned worked and the link tag appears. But the file doesn't appear to load. I imagine it's an .htaccess issue. I'll play around with a bit later this evening.

  • jorrie
    Avatar
    Community Member
    40 Posts

    Re: Customize backend style and UI Link to this post

    Thanks

    Can we use this also to set templates to something like /themes/admin ??
    If I copy /templates from /cms and place them in /mysite it also works but its not a real good solution, it will still loads all js and css stuff from /cms

    What would be a place to hook into the user permissions?
    So I can check which if the logged in user is admin or note, if not admin It would display a simplified backend skin for enduser.

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: Customize backend style and UI Link to this post

    Hi,

    this extension is very useful but when I am trying to edit the right side of the CMS it does not worked on 2.4.
    My styling keeps getting overwritten by cms_right.css.

    Can someone advise me ? do I need to add an extension for the CMSMain (because I tried and it didn't worked so well).

  • Thomashv
    Avatar
    Community Member
    32 Posts

    Re: Customize backend style and UI Link to this post

    Hi,

    Did you find any solution to this?
    I've got the same problem. The cms_right.css overrides my custom css, so it is impossible to change font color on labels I use to describe the purpose of the fields.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Customize backend style and UI Link to this post

    The cms_right.css overrides my custom css, so it is impossible to change font color on labels I use to describe the purpose of the fields.

    Could you not just use a more specific selector to override it?

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: Customize backend style and UI Link to this post

    Just found out that, instead of extending LeftAndMain, you can use the following in your mysite/_config.php:

    LeftAndMain::require_css('mysite/css/MyCustomCSS.css');

    or even

    SSViewer::set_theme('MyTheme');

    LeftAndMain::require_themed_css('MyCustomCSS');

    Note: he latter will follow the theme that was initially set, not(!) alternative themes you select using SiteConfig.

    4535 Views
Page: 1 2
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.