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 = GridField::create(
"Categories", 'Categories',
_t("Blog.Categories", "Categories"), _t('Blog.Categories', 'Categories'),
$self->Categories(), $self->Categories(),
GridFieldCategorisationConfig::create(15, $self->Categories(), 'BlogCategory', 'Categories', 'BlogPosts') GridFieldCategorisationConfig::create(15, $self->Categories(), 'BlogCategory', 'Categories', 'BlogPosts')
); );
$tags = GridField::create( $tags = GridField::create(
"Tags", 'Tags',
_t("Blog.Tags", "Tags"), _t('Blog.Tags', 'Tags'),
$self->Tags(), $self->Tags(),
GridFieldCategorisationConfig::create(15, $self->Tags(), 'BlogTag', 'Tags', 'BlogPosts') GridFieldCategorisationConfig::create(15, $self->Tags(), 'BlogTag', 'Tags', 'BlogPosts')
); );
$fields->addFieldsToTab("Root.Categorisation", array( $fields->addFieldsToTab('Root.Categorisation', array(
$categories, $categories,
$tags $tags
)); ));
$fields->findOrMakeTab('Root.Categorisation')->addExtraClass('blog-cms-categorisation');
}); });
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();