mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: BlogPost: Sets Title label to "Post Title", instead of misleading "Page name"
This commit is contained in:
parent
ba825f3e4e
commit
fedfaa8d53
@ -14,6 +14,7 @@ en:
|
|||||||
Categories: 'Categories'
|
Categories: 'Categories'
|
||||||
Tags: 'Tags'
|
Tags: 'Tags'
|
||||||
FeaturedImage: 'Featured Image'
|
FeaturedImage: 'Featured Image'
|
||||||
|
PageTitleLabel: 'Post Title'
|
||||||
Blog:
|
Blog:
|
||||||
BlogPosts: 'Blog Posts'
|
BlogPosts: 'Blog Posts'
|
||||||
Categories: 'Categories'
|
Categories: 'Categories'
|
||||||
|
@ -176,6 +176,19 @@ class BlogPost extends Page {
|
|||||||
return Controller::join_links($this->Parent()->Link("archive"), $date->format("Y"));
|
return Controller::join_links($this->Parent()->Link("archive"), $date->format("Y"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the label for BlogPost.Title to 'Post Title' (Rather than 'Page name')
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
**/
|
||||||
|
public function fieldLabels($includerelations = true) {
|
||||||
|
$labels = parent::fieldLabels($includerelations);
|
||||||
|
$labels['Title'] = _t('BlogPost.PageTitleLabel', "Post Title");
|
||||||
|
return $labels;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user