Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » changing the splash screen

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

Page: 1 2
Go to End
Author Topic: 2006 Views
  • weblaster
    Avatar
    Community Member
    1 Post

    changing the splash screen Link to this post

    Hello,

    For starters i would like to complement you guys on your great product! mind blowing indeed.
    I have been trying to find how to change the splash screen on the admin panel when loading startup for my own splash screen and could not find any info.

    Any help would be greatly appriciated.

    Naor

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: changing the splash screen Link to this post

    The splash screen image is "cms/images/loading.gif". If you change that, it should change for you. Not sure if this breaks any guidelines or anything though...

  • UncleCheese
    Avatar
    4085 Posts

    Re: changing the splash screen Link to this post

    You mean to create some kind of dashboard? I've done that. For starters, just edit the template /cms/templates/Includes/CMSMain_right.ss

    I totally agree with you -- the default page in Silverstripe gives me a "what were they thinking" moment every time I log in. No calls to action, no overviews or summaries. It's just... empty.

    By editing that template, however, I've been able to add links to most recently updated pages, assets, users, etc.. at least it's something.

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: changing the splash screen Link to this post

    UncleCheese, would you be open to posting the stats code for the dashboard setup? That sounds really useful!

  • UncleCheese
    Avatar
    4085 Posts

    Re: changing the splash screen Link to this post

    Sure.. basically you want to do something like this..

    /cms/templates/Includes/CMSMain_right.ss

          <h1>$ApplicationName</h1>
          <div class="dashboard-module">
             <h3>Recent Page Updates</h3>
             <ul>
                <% control RecentUpdates %>
                   <li>$LastEdited : $Title</li>
                <% end_control %>
             </ul>
          </div>
          <div class="dashboard-module">
          <h3>Recent Uploads</h3>
             <ul>
                <% control RecentUploads %>
                   <li>$LastEdited : $Filename</li>
                <% end_control %>
             </ul>
          </div>

    /cms/code/LeftAndMain.php

       public function RecentUpdates()
       {
          return DataObject::get("SiteTree",null,"LastEdited DESC",null,10);
       }

       public function RecentUploads()
       {
          return DataObject::get("File",null,"LastEdited DESC",null,10);
       }

    You get the idea..

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: changing the splash screen Link to this post

    Awesome, thanks mate!

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: changing the splash screen Link to this post

    Whatever happened to the dashboard module/extension that was kicking around for a while?

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: changing the splash screen Link to this post

    Hi all,

    I have been thinking about this a lot recently, glad to see I am not the only one .

    UncleCheese, is it possible to overwrite the CMSMain_right.ss in my code or themes folder?

    I currently have CMS, Sapphire and Jsparty loaded into my projects via svn:externals, so I cant easilt hack up the code :s.

    Mo

    2006 Views
Page: 1 2
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.