silverstripe-module silverstripe-gridfieldsitetree
A SilverStripe Module that allows you to manage children SiteTree pages via GridField
christopherdarling/silverstripe-gridfieldsitetree
A SilverStripe Module that allows you to manage children SiteTree pages via GridField
- Saturday, July 9, 2016
- by christopherdarling
- Repository
- 1 Watchers
- 4 Stars
- 33 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
, (*1)
GridFieldSiteTree
Allows you to manage children SiteTree pages via GridField., (*2)
Requirments
Usage
Add GridFieldSiteTree_PageHolderExtension as an Extension to the page you're adding the GridField to., (*3)
:::php
BlogHolder::add_extension('GridFieldSiteTree_PageHolderExtension');
Add the GridField to the pagetype, (*4)
:::php
$fields->addFieldToTab('Root.Pages', $this->getGridFieldSiteTreeField('BlogPages', 'Blog pages', $this->AllChildren()));