mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #15 from purplespider/1.0
MINOR: BlogPost: Sets Title label to "Post Title"
This commit is contained in:
commit
17762568cf
@ -14,6 +14,7 @@ en:
|
||||
Categories: 'Categories'
|
||||
Tags: 'Tags'
|
||||
FeaturedImage: 'Featured Image'
|
||||
PageTitleLabel: 'Post Title'
|
||||
Blog:
|
||||
BlogPosts: 'Blog Posts'
|
||||
Categories: 'Categories'
|
||||
|
@ -176,6 +176,19 @@ class BlogPost extends Page {
|
||||
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