mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
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:
parent
e265ae35e8
commit
899a81cb79
@ -23,7 +23,6 @@ class BlogTree extends Page {
|
||||
static $default_entries_limit = 10;
|
||||
|
||||
static $db = array(
|
||||
'Name' => 'Varchar(255)',
|
||||
'InheritSideBar' => 'Boolean',
|
||||
'LandingPageFreshness' => 'Varchar',
|
||||
);
|
||||
@ -107,7 +106,6 @@ class BlogTree extends Page {
|
||||
function 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(
|
||||
"" => "All entries",
|
||||
"1" => "Last month's entries",
|
||||
@ -296,7 +294,7 @@ class BlogTree_Controller extends Page_Controller {
|
||||
function rss() {
|
||||
global $project_name;
|
||||
|
||||
$blogName = $this->Name;
|
||||
$blogName = $this->Title;
|
||||
$altBlogName = $project_name . ' blog';
|
||||
|
||||
$entries = $this->Entries(20);
|
||||
|
Loading…
x
Reference in New Issue
Block a user