MINOR: move Name field from BlogHolder to BlogTree

This commit is contained in:
Saophalkun Ponlu 2009-05-20 02:18:48 +00:00
parent 05cf841808
commit 61a2cc2332
2 changed files with 2 additions and 2 deletions

View File

@ -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')));

View File

@ -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",