mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: move Name field from BlogHolder to BlogTree
This commit is contained in:
parent
05cf841808
commit
61a2cc2332
@ -16,7 +16,6 @@ class BlogHolder extends BlogTree {
|
|||||||
static $icon = "blog/images/blogholder";
|
static $icon = "blog/images/blogholder";
|
||||||
|
|
||||||
static $db = array(
|
static $db = array(
|
||||||
'Name' => 'Varchar',
|
|
||||||
'TrackBacksEnabled' => 'Boolean',
|
'TrackBacksEnabled' => 'Boolean',
|
||||||
'AllowCustomAuthors' => 'Boolean',
|
'AllowCustomAuthors' => 'Boolean',
|
||||||
);
|
);
|
||||||
@ -31,7 +30,6 @@ class BlogHolder extends BlogTree {
|
|||||||
|
|
||||||
function getCMSFields() {
|
function getCMSFields() {
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
$fields->addFieldToTab("Root.Content.Main", new TextField("Name", "Name of blog"));
|
|
||||||
|
|
||||||
$fields->addFieldToTab('Root.Content.Main', new CheckboxField('TrackBacksEnabled', 'Enable TrackBacks'));
|
$fields->addFieldToTab('Root.Content.Main', new CheckboxField('TrackBacksEnabled', 'Enable TrackBacks'));
|
||||||
$fields->addFieldToTab('Root.Content.Main', new DropdownField('OwnerID', 'Blog owner', DataObject::get('Member')->toDropDownMap('ID', 'Name', 'None')));
|
$fields->addFieldToTab('Root.Content.Main', new DropdownField('OwnerID', 'Blog owner', DataObject::get('Member')->toDropDownMap('ID', 'Name', 'None')));
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
class BlogTree extends Page {
|
class BlogTree extends Page {
|
||||||
|
|
||||||
static $db = array(
|
static $db = array(
|
||||||
|
'Name' => 'Varchar',
|
||||||
'InheritSideBar' => 'Boolean',
|
'InheritSideBar' => 'Boolean',
|
||||||
'LandingPageFreshness' => 'Varchar',
|
'LandingPageFreshness' => 'Varchar',
|
||||||
);
|
);
|
||||||
@ -85,6 +86,7 @@ class BlogTree extends Page {
|
|||||||
|
|
||||||
function getCMSFields() {
|
function getCMSFields() {
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
|
$fields->addFieldToTab("Root.Content.Main", new TextField("Name", "Name of blog"));
|
||||||
$fields->addFieldToTab('Root.Content.Main', new DropdownField('LandingPageFreshness', 'When you first open the blog, how many entries should I show', array(
|
$fields->addFieldToTab('Root.Content.Main', new DropdownField('LandingPageFreshness', 'When you first open the blog, how many entries should I show', array(
|
||||||
"" => "All entries",
|
"" => "All entries",
|
||||||
"1 MONTH" => "Last month's entries",
|
"1 MONTH" => "Last month's entries",
|
||||||
|
Loading…
Reference in New Issue
Block a user