Blog: Wrapped CMS fields in beforeUpdateCMSFields to allow for customisation

This commit is contained in:
James Cocker 2014-06-13 16:19:15 +01:00
parent eea227d42e
commit be0e8e283a
1 changed files with 37 additions and 34 deletions

View File

@ -33,7 +33,7 @@ class Blog extends Page {
public function getCMSFields() {
$fields = parent::getCMSFields();
$this->beforeUpdateCMSFields(function($fields) {
$posts = $this->getBlogPosts();
$excluded = $this->getExcludedSiteTreeClassNames();
@ -72,6 +72,9 @@ class Blog extends Page {
$tags
));
});
$fields = parent::getCMSFields();
return $fields;
}