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

Remove that ugly splash screen with the logo!


Reply

5 Posts   1958 Views

Avatar
jorrie

29 March 2010 at 1:31am Community Member, 40 Posts

Is there a way to remove that ugly splash screen in sliverstripe?
I have downloaded the beta 2.4 and was hoping silverstripe finally removed that splash screen and improved the loading between "tabs" but that splash screen definitly has to go out in my opinion!

Avatar
Pigeon

29 March 2010 at 2:01am Community Member, 243 Posts

Of course, this is SilverStripe!

There are three main things that you can customise with great ease with the CMS 'look and feel'.

LeftAndMain::setLogo('mysite/images/cms-logo.gif',[inline custom css]);
LeftAndMain::setApplicationName('My CMS', null, 'http://www.betterbrief.co.uk/');
LeftAndMain::set_loading_image('mysite/images/cms-loading.gif');

see: [url=http://svn.silverstripe.com/open/modules/cms/trunk/code/LeftAndMain.php]LeftAndMain class[/url]

Please note, order is important with these functions as one will ovewrite the other, a bit annoying.

PS: I have only used this in 2.3, but the code is still in the trunk, so it should work in 2.4 as well.

Avatar
jorrie

29 March 2010 at 4:51am Community Member, 40 Posts

Hi Thanks

But where exactly do you set these settings, in the main config file inside / cms ?

Avatar
Hamish

29 March 2010 at 1:49pm Community Member, 712 Posts

Any _config.php will do, but preferably the one in your mysite folder.

Avatar
Thomashv

2 February 2011 at 1:45am (Last edited: 2 February 2011 1:46am), Community Member, 33 Posts

I've got some strange problems when trying to change the logo in admin.

In my _config.php:

LeftAndMain::setLogo('assets/Uploads/VisionWeb-logo.gif', 'position: relative; left: 0px; margin-top: -3px; padding-left: 0px');

And when i view the source code the ' character has been html encoded:

<div id="Logo" style="background: url(&quot;assets/Uploads/VisionWeb-logo.gif&quot;) no-repeat scroll 0% 0% transparent; position: relative; left: 0px; margin-top: -3px; padding-left: 0px;">

Anyone having any idea about what's happening here?