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 $db = array(
|
||||
'Name' => 'Varchar',
|
||||
'TrackBacksEnabled' => 'Boolean',
|
||||
'AllowCustomAuthors' => 'Boolean',
|
||||
);
|
||||
@ -31,7 +30,6 @@ class BlogHolder extends BlogTree {
|
||||
|
||||
function 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 DropdownField('OwnerID', 'Blog owner', DataObject::get('Member')->toDropDownMap('ID', 'Name', 'None')));
|
||||
|
@ -11,6 +11,7 @@
|
||||
class BlogTree extends Page {
|
||||
|
||||
static $db = array(
|
||||
'Name' => 'Varchar',
|
||||
'InheritSideBar' => 'Boolean',
|
||||
'LandingPageFreshness' => 'Varchar',
|
||||
);
|
||||
@ -85,6 +86,7 @@ class BlogTree extends Page {
|
||||
|
||||
function 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(
|
||||
"" => "All entries",
|
||||
"1 MONTH" => "Last month's entries",
|
||||
|
Loading…
Reference in New Issue
Block a user