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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Theme the CMS in SS3


Go to End


3 Posts   740 Views

Avatar
lozhowlett

Community Member, 151 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, 187 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/'.