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.

Customising the CMS

Where has `set_loading_image` gone?


Reply

4 Posts   228 Views

Avatar
Speak

2 February 2014 at 10:12am Community Member, 3 Posts

Hi,

I am trying to find a function that seems to only appear in 2.4 called `set_loading_image` http://api.silverstripe.org/2.4/source-class-LeftAndMain.html#1232-1237

If you swap to the 3.0 / 3.1 docs it disappears and cannot see it in the deprecation logs.

Any one know if it was renamed or removed all together or how you now achieve changing the CMS' loading image?

Thanks.

Avatar
Willr

2 February 2014 at 7:11pm (Last edited: 2 February 2014 7:11pm), Forum Moderator, 5511 Posts

It has been removed. You should either set the loading page by providing a custom template (CMSLoadingScreen) or simply by providing an additional CSS file through LeftAndMain::extra_requirements_css and overriding the .ss-loading-screen .loading-logo selector with your file.

Avatar
Speak

3 February 2014 at 3:09am Community Member, 3 Posts

Brilliant, thank you.

Where in the documentation does it explain this? Just so if I come across something like this again I know where to look for changes.

Avatar
Willr

3 February 2014 at 6:19pm Forum Moderator, 5511 Posts

It should have been in the change logs but I can't find any reference to it. The only place would be in the git history, generally API's won't be removed without a note in the change logs.