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-02-03 08:59:15 +01:00
|
|
|
* @author Michael Strong <mstrong@silverstripe.org>
|
2013-07-21 12:23:35 +02:00
|
|
|
**/
|
2015-02-03 07:34:30 +01:00
|
|
|
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
|
2013-07-21 12:23:35 +02:00
|
|
|
|
|
|
|
public function __construct($itemsPerPage = null) {
|
|
|
|
parent::__construct($itemsPerPage);
|
2015-02-05 05:30:27 +01:00
|
|
|
$this->removeComponentsByType('GridFieldSiteTreeState');
|
|
|
|
$this->addComponent(new GridFieldBlogPostState());
|
2013-07-21 12:23:35 +02:00
|
|
|
}
|
2015-02-03 08:59:15 +01:00
|
|
|
|
2013-07-21 12:23:35 +02:00
|
|
|
}
|