Bring back BlogPost URLSegment to Main tab

This commit is contained in:
Joris Debonnet 2018-04-10 02:04:44 +02:00
parent 4c1303bfb5
commit 06bcd961ce

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'),