Jump to:

23545 Posts in 19310 Topics by 2888 members

General Questions

SilverStripe Forums » General Questions » Theme the CMS in SS3

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: 417 Views
  • lozhowlett
    Avatar
    Community Member
    146 Posts

    Theme the CMS in SS3 Link to this post

    Hi Everyone

    We used to be able to theme the CMS in 2.4.7

    Is this pos in SS3?

    Eg

    LeftAndMain::setApplicationName("Some Name", "Company", "http://www.URL.co.uk");
    LeftAndMain::set_loading_image('cms/images/mainmenu/cms-logo.jpg');

    Seems to kill the site now tho.

  • Tony Air
    Avatar
    Community Member
    13 Posts

    Re: Theme the CMS in SS3 Link to this post

    Hi template based in framework/admin/templates/LeftAndMain_Menu.ss doesn't allow it in SS2 way, but u can customize it by ur own custom template and include custom css with LeftAndMainExtension
    for an instance that way:

    ...
    <div class="cms-logo">
             <a href="$ApplicationUrl" target="_blank" title="$ApplicationName<% if CMSVersion %> (Version - $CMSVersion)<% end_if %>">
                $ApplicationName<% if CMSVersion %> <abbr class="version">$CMSVersion</abbr><% end_if %>
             </a>
             <span><% if SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></span>
          </div>
    ...

  • kinglozzer
    Avatar
    Community Member
    146 Posts

    Re: Theme the CMS in SS3 Link to this post

    Is this what you're looking for?

    LeftAndMain::require_css('/themes/something/example.css');

    You can use it to overwrite the css values in: 'framework/admin/css/'.

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