Blog: Wrapped CMS fields in beforeUpdateCMSFields to allow for customisation
This commit is contained in:
parent
eea227d42e
commit
be0e8e283a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue