API Removed BlogTree.Name, use BlogTree.Title instead

We already have $Title and $MenuTitle, I don't really see a common
use case for $Name in addition to that
This commit is contained in:
Ingo Schommer 2013-04-11 00:41:36 +02:00
parent e265ae35e8
commit 899a81cb79

View File

@ -23,7 +23,6 @@ class BlogTree extends Page {
static $default_entries_limit = 10; static $default_entries_limit = 10;
static $db = array( static $db = array(
'Name' => 'Varchar(255)',
'InheritSideBar' => 'Boolean', 'InheritSideBar' => 'Boolean',
'LandingPageFreshness' => 'Varchar', 'LandingPageFreshness' => 'Varchar',
); );
@ -107,7 +106,6 @@ class BlogTree extends Page {
function getCMSFields() { function getCMSFields() {
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Main", new TextField("Name", "Name of blog"), "Content");
$fields->addFieldToTab('Root.Main', new DropdownField('LandingPageFreshness', 'When you first open the blog, how many entries should I show', array( $fields->addFieldToTab('Root.Main', new DropdownField('LandingPageFreshness', 'When you first open the blog, how many entries should I show', array(
"" => "All entries", "" => "All entries",
"1" => "Last month's entries", "1" => "Last month's entries",
@ -296,7 +294,7 @@ class BlogTree_Controller extends Page_Controller {
function rss() { function rss() {
global $project_name; global $project_name;
$blogName = $this->Name; $blogName = $this->Title;
$altBlogName = $project_name . ' blog'; $altBlogName = $project_name . ' blog';
$entries = $this->Entries(20); $entries = $this->Entries(20);