Jump to:

22977 Posts in 11737 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Remove "Welcome to SilverStripe!"

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
Go to End
Author Topic: 901 Views
  • Big Bang Creative
    Avatar
    Community Member
    92 Posts

    Remove "Welcome to SilverStripe!" Link to this post

    I want to remove this. I have done a search in all files for "Welcome to SilverStripe!" and it was found in the following:

    •   sapphire/core/model/SiteTree.php
    •   sapphire/lang/en_GB.php
    •   sapphire/lang/en_US.php

    Am I right in thinking this text is generated on installation? I have edited the files above, uploaded them and tried numrous times to re-install SilverStripe and I still cannot get rid of it.

    I am in the process of going over the whole default installation to completly remove all mention of SilverStripe and take out anything that is not needed for my clients. I will be writing documentation for this and will share it with everyone once done.

  • FungshuiElephant
    Avatar
    Community Member
    57 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    You can edit the homepage after logging in to the CMS.
    The actual words are stored in the database which are inserted at installation.

  • Big Bang Creative
    Avatar
    Community Member
    92 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    Surely there must be something I can edit before install?

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    /sapphire/core/model/SiteTree.php
    Line 929

    $homepage->Content = _t('SiteTree.DEFAULTHOMECONTENT', '<p>Welcome to SilverStripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>. You can now access the <a href="http://doc.silverstripe.com">developer documentation</a>, or begin <a href="http://doc.silverstripe.com/doku.php?id=tutorials">the tutorials.</a></p>');

    There are two other default content items there for the about us and contact page that are created on install.

    Cheers
    Aaron

  • Big Bang Creative
    Avatar
    Community Member
    92 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    I've already tried that with a fresh install and it did not work, it could be cached I don't know.

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    Just tested and I get the same as you. Been through install.php and traced the default content to /sapphire/core/model/DataObject.php line 2510:

    $defaultRecords = $this->stat('default_records');

    That stat function is located in core/Object.php, and that's where I gave up following.

    Luckily, where this default content originates is DEFINATELY something the core dev guys will know. So either hold fire and wait for someone to reply, or try the Google group or IRC.

    Cheers
    Aaron

  • Big Bang Creative
    Avatar
    Community Member
    92 Posts

    Re: Remove "Welcome to SilverStripe!" Link to this post

    Well that clears up why it was not working for me. I thought it was something I did wrong.

    I'm still trying to find out how to sort the following if you can help:

    http://www.silverstripe.org/general-questions/show/259334#post259334
    http://www.silverstripe.org/general-questions/show/259332#post259332

    901 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.