mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '3.1'
This commit is contained in:
commit
c83232bd6e
@ -15,7 +15,7 @@
|
||||
"silverstripe/asset-admin": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/PHPUnit": "^5.7",
|
||||
"phpunit/phpunit": "^5.7",
|
||||
"squizlabs/php_codesniffer": "^3.0"
|
||||
},
|
||||
"extra": {
|
||||
|
@ -248,14 +248,6 @@ class BlogPost extends Page
|
||||
|
||||
$fields->insertAfter('FeaturedImage', $summaryHolder);
|
||||
|
||||
$urlSegment = $fields->dataFieldByName('URLSegment');
|
||||
$urlSegment->setURLPrefix($this->Parent()->RelativeLink());
|
||||
|
||||
$fields->removeFieldsFromTab('Root.Main', [
|
||||
'MenuTitle',
|
||||
'URLSegment',
|
||||
]);
|
||||
|
||||
$authorField = ListboxField::create(
|
||||
'Authors',
|
||||
_t(__CLASS__ . '.Authors', 'Authors'),
|
||||
@ -306,7 +298,6 @@ class BlogPost extends Page
|
||||
'Root.PostOptions',
|
||||
[
|
||||
$publishDate,
|
||||
$urlSegment,
|
||||
TagField::create(
|
||||
'Categories',
|
||||
_t(__CLASS__ . '.Categories', 'Categories'),
|
||||
|
Loading…
Reference in New Issue
Block a user