Merge pull request #527 from JorisDebonnet/urlsegment-on-main

Bring back BlogPost URLSegment to Main tab
This commit is contained in:
Robbie Averill 2018-04-10 14:13:50 +12:00 committed by GitHub
commit c344575ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,14 +245,6 @@ class BlogPost extends Page
$fields->insertAfter($summaryHolder, 'FeaturedImage'); $fields->insertAfter($summaryHolder, 'FeaturedImage');
$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'),
@ -303,7 +295,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'),