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.

Customising the CMS /

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

Where has `set_loading_image` gone?


Go to End


4 Posts   1005 Views

Avatar
Speak

Community Member, 3 Posts

2 February 2014 at 10:12am

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

Forum Moderator, 5523 Posts

2 February 2014 at 7:11pm

Edited: 02/02/2014 7:11pm

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

Community Member, 3 Posts

3 February 2014 at 3:09am

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

Forum Moderator, 5523 Posts

3 February 2014 at 6:19pm

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.