Merge 39ba0e5bfd
into 02fb20d1a3
This commit is contained in:
commit
62def43ae4
|
@ -312,6 +312,11 @@ class BlogPost extends Page
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$shouldLazyLoadCategories = true;
|
||||||
|
if($this->Categories()->count() < 15) {
|
||||||
|
$shouldLazyLoadCategories = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Get categories and tags
|
// Get categories and tags
|
||||||
// @todo: Reimplement the sidebar
|
// @todo: Reimplement the sidebar
|
||||||
// $options = BlogAdminSidebar::create(
|
// $options = BlogAdminSidebar::create(
|
||||||
|
@ -326,7 +331,7 @@ class BlogPost extends Page
|
||||||
$this->Categories()
|
$this->Categories()
|
||||||
)
|
)
|
||||||
->setCanCreate($this->canCreateCategories())
|
->setCanCreate($this->canCreateCategories())
|
||||||
->setShouldLazyLoad(true),
|
->setShouldLazyLoad($shouldLazyLoadCategories),
|
||||||
TagField::create(
|
TagField::create(
|
||||||
'Tags',
|
'Tags',
|
||||||
_t(__CLASS__ . '.Tags', 'Tags'),
|
_t(__CLASS__ . '.Tags', 'Tags'),
|
||||||
|
|
Loading…
Reference in New Issue