Add class for Dan

This commit is contained in:
Christopher Pitt 2015-04-23 16:08:05 +12:00
parent 5130ed4e28
commit f214aabab5

View File

@ -90,23 +90,25 @@ class Blog extends Page implements PermissionProvider {
}
$categories = GridField::create(
"Categories",
_t("Blog.Categories", "Categories"),
'Categories',
_t('Blog.Categories', 'Categories'),
$self->Categories(),
GridFieldCategorisationConfig::create(15, $self->Categories(), 'BlogCategory', 'Categories', 'BlogPosts')
);
$tags = GridField::create(
"Tags",
_t("Blog.Tags", "Tags"),
'Tags',
_t('Blog.Tags', 'Tags'),
$self->Tags(),
GridFieldCategorisationConfig::create(15, $self->Tags(), 'BlogTag', 'Tags', 'BlogPosts')
);
$fields->addFieldsToTab("Root.Categorisation", array(
$fields->addFieldsToTab('Root.Categorisation', array(
$categories,
$tags
));
$fields->findOrMakeTab('Root.Categorisation')->addExtraClass('blog-cms-categorisation');
});
$fields = parent::getCMSFields();