mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Add class for Dan
This commit is contained in:
parent
5130ed4e28
commit
f214aabab5
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user