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"
|
"silverstripe/asset-admin": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/PHPUnit": "^5.7",
|
"phpunit/phpunit": "^5.7",
|
||||||
"squizlabs/php_codesniffer": "^3.0"
|
"squizlabs/php_codesniffer": "^3.0"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
@ -248,14 +248,6 @@ class BlogPost extends Page
|
|||||||
|
|
||||||
$fields->insertAfter('FeaturedImage', $summaryHolder);
|
$fields->insertAfter('FeaturedImage', $summaryHolder);
|
||||||
|
|
||||||
$urlSegment = $fields->dataFieldByName('URLSegment');
|
|
||||||
$urlSegment->setURLPrefix($this->Parent()->RelativeLink());
|
|
||||||
|
|
||||||
$fields->removeFieldsFromTab('Root.Main', [
|
|
||||||
'MenuTitle',
|
|
||||||
'URLSegment',
|
|
||||||
]);
|
|
||||||
|
|
||||||
$authorField = ListboxField::create(
|
$authorField = ListboxField::create(
|
||||||
'Authors',
|
'Authors',
|
||||||
_t(__CLASS__ . '.Authors', 'Authors'),
|
_t(__CLASS__ . '.Authors', 'Authors'),
|
||||||
@ -306,7 +298,6 @@ class BlogPost extends Page
|
|||||||
'Root.PostOptions',
|
'Root.PostOptions',
|
||||||
[
|
[
|
||||||
$publishDate,
|
$publishDate,
|
||||||
$urlSegment,
|
|
||||||
TagField::create(
|
TagField::create(
|
||||||
'Categories',
|
'Categories',
|
||||||
_t(__CLASS__ . '.Categories', 'Categories'),
|
_t(__CLASS__ . '.Categories', 'Categories'),
|
||||||
|
Loading…
Reference in New Issue
Block a user