PHPackages                             webbuilders-group/silverstripe-gridfielditemtype - 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. webbuilders-group/silverstripe-gridfielditemtype

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

webbuilders-group/silverstripe-gridfielditemtype
================================================

Adds type/class picking functionality to SilverStripe 4's GridField

2.2.1(11mo ago)56.3k1[1 issues](https://github.com/webbuilders-group/silverstripe-gridfielditemtype/issues)[2 PRs](https://github.com/webbuilders-group/silverstripe-gridfielditemtype/pulls)BSD-3-ClausePHP

Since Jul 26Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/webbuilders-group/silverstripe-gridfielditemtype)[ Packagist](https://packagist.org/packages/webbuilders-group/silverstripe-gridfielditemtype)[ RSS](/packages/webbuilders-group-silverstripe-gridfielditemtype/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (21)Used By (0)

GridFieldItemType
=================

[](#gridfielditemtype)

Adds type/class picking functionality to SilverStripe 4's GridField.

Maintainer Contact
------------------

[](#maintainer-contact)

- Ed Chipman ([UndefinedOffset](https://github.com/UndefinedOffset))

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

[](#requirements)

- SilverStripe ~4.5|~5.0|~6.0

Installation
------------

[](#installation)

- Download the module from here
- Extract the downloaded archive into your site root so that the destination folder is called GridFieldItemType, opening the extracted folder should contain \_config.php in the root along with other files/folders
- Run dev/build?flush=all to regenerate the manifest
- Upon entering the cms and using GridFieldItemType components for the first time you make need to add ?flush=all to the end of the address to force the templates to regenerate

Usage
-----

[](#usage)

If you are working with one of the pre-configured GridFieldConfigs you must first remove the default GridFieldDetailForm and GridFieldAddNewButton components replacing them with ItemTypeDetailForm and AddNewItemTypeButton respectively

```
use WebbuildersGroup\GridField\ItemType\AddNewItemTypeButton;
use SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor;

$config = GridFieldConfig_RecordEditor::create(10);
    ->removeComponentsByType(GridFieldAddNewButton::class)
    ->removeComponentsByType(GridFieldDetailForm::class)
    ->addComponent(new AddNewItemTypeButton($yourOptionsMap, 'buttons-before-left', 'empty string', 'default'))
    ->addComponent(new ItemTypeDetailForm());
```

If you are using the base GridField config you need to add both the AddNewItemTypeButton and ItemTypeDetailForm to your config

```
use WebbuildersGroup\GridField\ItemType\AddNewItemTypeButton;
use SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor;

$config=GridFieldConfig_Base::create(10);
$config->addComponent(new AddNewItemTypeButton($yourOptionsMap, 'buttons-before-left'));
$config->addComponent(new ItemTypeDetailForm());
```

If you are managing a versioned object you must override the item request class using:

```
use WebbuildersGroup\GridField\ItemType\VersionedItemTypeDetailForm_ItemRequest;

$detailForm->setItemRequestClass(VersionedItemTypeDetailForm_ItemRequest::class);
```

Note: All options in the type dropdown must be decendents of the model class.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance48

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 90.4% 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.

###  Release Activity

Cadence

Every ~230 days

Recently: every ~441 days

Total

20

Last Release

335d ago

Major Versions

0.4.0 → 1.0.02018-05-25

1.0.0 → 2.0.02019-01-29

1.0.1 → 2.1.32021-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/4339255555acb728d7708895663e2a047a73c09f4394aa25bf038817e2d25d44?d=identicon)[WebbuildersGroup](/maintainers/WebbuildersGroup)

---

Top Contributors

[![UndefinedOffset](https://avatars.githubusercontent.com/u/1391558?v=4)](https://github.com/UndefinedOffset "UndefinedOffset (47 commits)")[![RobertLeCreux](https://avatars.githubusercontent.com/u/25985906?v=4)](https://github.com/RobertLeCreux "RobertLeCreux (3 commits)")[![aaronmacpherson](https://avatars.githubusercontent.com/u/20426496?v=4)](https://github.com/aaronmacpherson "aaronmacpherson (1 commits)")[![rsmclaren](https://avatars.githubusercontent.com/u/1579625?v=4)](https://github.com/rsmclaren "rsmclaren (1 commits)")

---

Tags

silverstripegridfield

### Embed Badge

![Health badge](/badges/webbuilders-group-silverstripe-gridfielditemtype/health.svg)

```
[![Health](https://phpackages.com/badges/webbuilders-group-silverstripe-gridfielditemtype/health.svg)](https://phpackages.com/packages/webbuilders-group-silverstripe-gridfielditemtype)
```

###  Alternatives

[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

951.9M264](/packages/symbiote-silverstripe-gridfieldextensions)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

911.2M52](/packages/undefinedoffset-sortablegridfield)[unclecheese/betterbuttons

Adds new form actions and buttons to GridField detail form for usability enhancements.

79551.1k19](/packages/unclecheese-betterbuttons)[briceburg/silverstripe-pickerfield

GridField based management of has\_one , has\_many , and many\_many relationship selection

2541.2k1](/packages/briceburg-silverstripe-pickerfield)[webbuilders-group/silverstripe-frontendgridfield

Wraps gridfield adding support for using it on the front-end.

2030.0k1](/packages/webbuilders-group-silverstripe-frontendgridfield)[markguinn/silverstripe-gridfieldmultiselect

Gridfield extensions to add checkboxes for each row to easily delete or perform actions on multiple rows.

105.9k](/packages/markguinn-silverstripe-gridfieldmultiselect)

PHPackages © 2026

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