diff --git a/lang/en.yml b/lang/en.yml index 43b869f..02c26f7 100755 --- a/lang/en.yml +++ b/lang/en.yml @@ -14,6 +14,7 @@ en: Categories: 'Categories' Tags: 'Tags' FeaturedImage: 'Featured Image' + PageTitleLabel: 'Post Title' Blog: BlogPosts: 'Blog Posts' Categories: 'Categories' diff --git a/model/BlogPost.php b/model/BlogPost.php index 21a0757..0b82fa1 100755 --- a/model/BlogPost.php +++ b/model/BlogPost.php @@ -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; + } + }