PHPackages                             restruct/silverstripe-gridfieldsitetreebuttons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. restruct/silverstripe-gridfieldsitetreebuttons

Abandoned → Please add github issue if still using this moduleArchivedSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

restruct/silverstripe-gridfieldsitetreebuttons
==============================================

Modifies GridFields &amp; GridField detail forms to use standard page edit form (with versioning, history &amp; settings). Simple alternative for versionedgridfield.

011PHP

Since Oct 17Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/restruct/silverstripe-gridfieldsitetreebuttons)[ Packagist](https://packagist.org/packages/restruct/silverstripe-gridfieldsitetreebuttons)[ RSS](/packages/restruct-silverstripe-gridfieldsitetreebuttons/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sitetree Buttons for GridField
==============================

[](#sitetree-buttons-for-gridfield)

Not needed anymore, from Silverstripe 4/5 onwards regular Gridfield addnew button works fine
============================================================================================

[](#not-needed-anymore-from-silverstripe-45-onwards-regular-gridfield-addnew-button-works-fine)

ARCHIVED (add issue to some Restruct module to let me know if you still need this module)
=========================================================================================

[](#archived-add-issue-to-some-restruct-module-to-let-me-know-if-you-still-need-this-module)

Modifies GridFields &amp; GridField detail forms to use standard page edit form (with versioning, history &amp; settings).

Best used in combination with:

- [silverstripe-excludechildren module to hide pages from the sitetree](https://github.com/restruct/silverstripe-excludechildren)

Or use/subclass the preconfigured GridfieldPages module, which contains both the excludechildren module and this sitetreebuttons module:

- [silverstripe-gridfieldpages](https://github.com/restruct/silverstripe-gridfieldpages)

Screenshot
----------

[](#screenshot)

*Manage (add &amp; edit) SiteTree items from a GridField:*[![](images/screenshots/holderscreen.png)](images/screenshots/holderscreen.png)

Usage
-----

[](#usage)

In GridFieldConfig, replace GridFieldAddNewButton('toolbar-header-right') with GridFieldAddNewSiteTreeItemButton('toolbar-header-right') and new GridFieldDetailForm() with GridFieldEditSiteTreeItemButton()

Like this:

```
$gfconf = GridFieldConfig_RecordEditor::create();
$gfconf->removeComponentsByType('GridFieldAddNewButton');
$gfconf->addComponent(new GridFieldAddNewSiteTreeItemButton('toolbar-header-right'));
$gfconf->removeComponentsByType('GridFieldAddNewButton');
$gfconf->addComponent(new GridFieldEditSiteTreeItemButton());

```

Requirements
------------

[](#requirements)

SilverStripe 4.0 or higher

Pro tip
-------

[](#pro-tip)

Use/subclass the prefabricated GridfieldPages module as a all-in-one base:

- [silverstripe-gridfieldpages](https://github.com/restruct/silverstripe-gridfieldpages)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3680d6353e5f171543435b89965ba2588186ad7ec0ec97cbf572704fec2a4f?d=identicon)[micschk](/maintainers/micschk)

---

Top Contributors

[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (3 commits)")[![patjnr](https://avatars.githubusercontent.com/u/435055?v=4)](https://github.com/patjnr "patjnr (3 commits)")

### Embed Badge

![Health badge](/badges/restruct-silverstripe-gridfieldsitetreebuttons/health.svg)

```
[![Health](https://phpackages.com/badges/restruct-silverstripe-gridfieldsitetreebuttons/health.svg)](https://phpackages.com/packages/restruct-silverstripe-gridfieldsitetreebuttons)
```

###  Alternatives

[michaeljennings/carpenter

A PHP package to create HTML tables from a data store that can be sorted and paginated.

191.7k](/packages/michaeljennings-carpenter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
