Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Where has `set_loading_image` gone?

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

Page: 1
Go to End
Author Topic: 208 Views
  • Speak
    Avatar
    Community Member
    3 Posts

    Where has `set_loading_image` gone? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Where has `set_loading_image` gone? Link to this post

    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.

  • Speak
    Avatar
    Community Member
    3 Posts

    Re: Where has `set_loading_image` gone? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Where has `set_loading_image` gone? Link to this post

    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.

    208 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.