mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Bring back BlogPost URLSegment to Main tab
This commit is contained in:
parent
4c1303bfb5
commit
06bcd961ce
@ -245,14 +245,6 @@ class BlogPost extends Page
|
||||
|
||||
$fields->insertAfter($summaryHolder, 'FeaturedImage');
|
||||
|
||||
$urlSegment = $fields->dataFieldByName('URLSegment');
|
||||
$urlSegment->setURLPrefix($this->Parent()->RelativeLink());
|
||||
|
||||
$fields->removeFieldsFromTab('Root.Main', [
|
||||
'MenuTitle',
|
||||
'URLSegment',
|
||||
]);
|
||||
|
||||
$authorField = ListboxField::create(
|
||||
'Authors',
|
||||
_t(__CLASS__ . '.Authors', 'Authors'),
|
||||
@ -303,7 +295,6 @@ class BlogPost extends Page
|
||||
'Root.PostOptions',
|
||||
[
|
||||
$publishDate,
|
||||
$urlSegment,
|
||||
TagField::create(
|
||||
'Categories',
|
||||
_t(__CLASS__ . '.Categories', 'Categories'),
|
||||
|
Loading…
Reference in New Issue
Block a user