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