2013-07-21 12:23:35 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2014-02-16 06:19:26 +01:00
|
|
|
* GridField config necessary for managing a SiteTree object.
|
2013-07-21 12:23:35 +02:00
|
|
|
*
|
|
|
|
* @package silverstripe
|
|
|
|
* @subpackage blog
|
2015-05-09 16:33:12 +02:00
|
|
|
*/
|
2015-02-03 07:34:30 +01:00
|
|
|
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
|
2015-05-09 16:33:12 +02:00
|
|
|
/**
|
|
|
|
* @param null|int $itemsPerPage
|
|
|
|
*/
|
2013-07-21 12:23:35 +02:00
|
|
|
public function __construct($itemsPerPage = null) {
|
|
|
|
parent::__construct($itemsPerPage);
|
2015-05-09 16:33:12 +02:00
|
|
|
|
2015-02-05 05:30:27 +01:00
|
|
|
$this->removeComponentsByType('GridFieldSiteTreeState');
|
|
|
|
$this->addComponent(new GridFieldBlogPostState());
|
2013-07-21 12:23:35 +02:00
|
|
|
}
|
2015-05-09 16:33:12 +02:00
|
|
|
}
|