mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Stabilized TagField API
This commit is contained in:
parent
8feb8abee7
commit
e4c873f08b
@ -230,17 +230,19 @@ class BlogPost extends Page {
|
|||||||
TagField::create(
|
TagField::create(
|
||||||
'Categories',
|
'Categories',
|
||||||
_t('BlogPost.Categories', 'Categories'),
|
_t('BlogPost.Categories', 'Categories'),
|
||||||
$self->Parent()->Categories()->map(),
|
$self->Parent()->Categories(),
|
||||||
$self->Categories()->map(),
|
$self->Categories()
|
||||||
!$self->canCreateCategories()
|
)
|
||||||
),
|
->setCanCreate($self->canCreateCategories())
|
||||||
|
->setShouldLazyLoad(true),
|
||||||
TagField::create(
|
TagField::create(
|
||||||
'Tags',
|
'Tags',
|
||||||
_t('BlogPost.Tags', 'Tags'),
|
_t('BlogPost.Tags', 'Tags'),
|
||||||
$self->Parent()->Tags()->map(),
|
$self->Parent()->Tags(),
|
||||||
$self->Tags()->map(),
|
$self->Tags()
|
||||||
!$self->canCreateTags()
|
)
|
||||||
),
|
->setCanCreate($self->canCreateTags())
|
||||||
|
->setShouldLazyLoad(true),
|
||||||
$authorField,
|
$authorField,
|
||||||
$authorNames
|
$authorNames
|
||||||
)->setTitle('Post Options');
|
)->setTitle('Post Options');
|
||||||
|
Loading…
Reference in New Issue
Block a user