christopherdarling/silverstripe-gridfieldsitetree

A SilverStripe Module that allows you to manage children SiteTree pages via GridField

dev-master 2016-07-09 10:41 UTC

This package is auto-updated.

Last update: 2024-04-15 16:42:18 UTC


README

Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

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()));