mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENH Update default homepage content (#3001)
* name-update: Rename SilverStripe Silverstripe * name-update: Create DEFAULTHOMECONTENT2 content * name-update: Tweak copy Co-authored-by: Steve Boyd <emteknetnz@gmail.com> * name-update: Tweak copy 2 Co-authored-by: Steve Boyd <emteknetnz@gmail.com> --------- Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
This commit is contained in:
parent
003df23cb7
commit
1dab090402
@ -1599,7 +1599,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
if (!SiteTree::get_by_link($defaultHomepage)) {
|
||||
$homepage = new Page();
|
||||
$homepage->Title = _t(__CLASS__.'.DEFAULTHOMETITLE', 'Home');
|
||||
$homepage->Content = _t(__CLASS__.'.DEFAULTHOMECONTENT', '<p>Welcome to SilverStripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>.</p><p>You can now access the <a href="http://docs.silverstripe.org">developer documentation</a>, or begin the <a href="http://www.silverstripe.org/learn/lessons">SilverStripe lessons</a>.</p>');
|
||||
$homepage->Content = _t(__CLASS__.'.DEFAULTHOMECONTENT2', '<p>Welcome to Silverstripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>.</p><p>For comprehensive information on Silverstripe CMS, see the <a target="_blank" href="http://docs.silverstripe.org">developer documentation</a>.</p>');
|
||||
$homepage->URLSegment = $defaultHomepage;
|
||||
$homepage->Sort = 1;
|
||||
$homepage->write();
|
||||
|
@ -195,6 +195,7 @@ en:
|
||||
DEFAULTCONTACTCONTENT: '<p>You can fill this page out with your own content, or delete it and create your own pages.</p>'
|
||||
DEFAULTCONTACTTITLE: 'Contact Us'
|
||||
DEFAULTHOMECONTENT: '<p>Welcome to SilverStripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>.</p><p>You can now access the <a href="http://docs.silverstripe.org">developer documentation</a>, or begin the <a href="http://www.silverstripe.org/learn/lessons">SilverStripe lessons</a>.</p>'
|
||||
DEFAULTHOMECONTENT2: '<p>Welcome to Silverstripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>.</p><p>For comprehensive information on Silverstripe CMS, see the <a target="_blank" href="http://docs.silverstripe.org">developer documentation</a>.</p>'
|
||||
DEFAULTHOMETITLE: Home
|
||||
DEPENDENT_NOTE: 'The following pages depend on this page. This includes virtual pages, redirector pages, and pages with content links.'
|
||||
DESCRIPTION: 'Generic content page'
|
||||
|
Loading…
Reference in New Issue
Block a user