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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Remove "Welcome to SilverStripe!"


Go to End


7 Posts   1731 Views

Avatar
Big Bang Creative

Community Member, 92 Posts

28 April 2009 at 6:09am

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.

Avatar
FungshuiElephant

Community Member, 57 Posts

28 April 2009 at 6:26am

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

Avatar
Big Bang Creative

Community Member, 92 Posts

28 April 2009 at 6:33am

Edited: 28/04/2009 6:33am

Surely there must be something I can edit before install?

Avatar
Double-A-Ron

Community Member, 607 Posts

28 April 2009 at 10:06am

/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

Avatar
Big Bang Creative

Community Member, 92 Posts

28 April 2009 at 10:54am

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

Avatar
Double-A-Ron

Community Member, 607 Posts

28 April 2009 at 12:34pm

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

Avatar
Big Bang Creative

Community Member, 92 Posts

29 April 2009 at 8:20am

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