christopherdarling / silverstripe-gridfieldsitetree
A SilverStripe Module that allows you to manage children SiteTree pages via GridField
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 1
Type:silverstripe-module
Requires
- php: >=5.3.2
- silverstripe/cms: ~3.1
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2025-03-15 18:33:34 UTC
README
GridFieldSiteTree
Allows you to manage children SiteTree pages via GridField.
Requirments
- SilverStripe 3.1
Usage
Add GridFieldSiteTree_PageHolderExtension as an Extension to the page you're adding the GridField to.
:::php
BlogHolder::add_extension('GridFieldSiteTree_PageHolderExtension');
Add the GridField to the pagetype
:::php
$fields->addFieldToTab('Root.Pages', $this->getGridFieldSiteTreeField('BlogPages', 'Blog pages', $this->AllChildren()));