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.

General Questions /

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

Theme the CMS in SS3


Reply


3 Posts   436 Views

Avatar
lozhowlett

Community Member, 146 Posts

25 October 2012 at 2:12am

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.

Avatar
Tony Air

Community Member, 13 Posts

26 October 2012 at 6:00pm

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

Avatar
kinglozzer

Community Member, 166 Posts

27 October 2012 at 12:23am

Edited: 27/10/2012 12:23am

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/'.