mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #527 from JorisDebonnet/urlsegment-on-main
Bring back BlogPost URLSegment to Main tab
This commit is contained in:
commit
c344575ef9
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user