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

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

webbuilders-group/silverstripe-limitedrelationsgridfield
========================================================

Adds the ability to limit the number of items in the relationship managed by GridField.

3.0.0(10mo ago)41.8k↓83.3%4BSD-3-ClausePHPCI failing

Since Mar 1Pushed 10mo ago4 watchersCompare

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

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

Limited Relations GridField
===========================

[](#limited-relations-gridfield)

Adds the ability to limit the number of items in the relationship managed by GridField.

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

[](#maintainer-contact)

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

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

[](#requirements)

- SilverStripe CMS ~6.0

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

[](#installation)

**Composer (recommended):**

```
composer require webbuilders-group/silverstripe-limitedrelationsgridfield

```

Usage
-----

[](#usage)

For many\_many relationships simply swap the configuration for the GridField with LRGridFieldConfig\_RelationEditor, for example.

```
//Create a GridField instance with a page length of 10 and a item cound limit of 20
new GridField('MyGridField', 'My GridField', $this->Relationship(), LRGridFieldConfig_RelationEditor::create(10, 20));
```

For has\_many relationships simply swap the configuration for the GridField with LRGridFieldConfig\_RecordEditor, for example.

```
//Create a GridField instance with a page length of 10 and a item cound limit of 20
new GridField('MyGridField', 'My GridField', $this->Relationship(), LRGridFieldConfig_RecordEditor::create(10, 20));
```

#### Configuration Options

[](#configuration-options)

The LRGridFieldAddExistingAutocompleter component provides a single method that allows changing of the limit, as well this limit can be set as the 3rd parameter to the constructor.

```
$myLimitedAutoCompleter->setItemLimit(3); //Change the item limit to 3
```

The LRGridFieldDetailForm component provides a single method that allows changing of the limit, as well this limit can be set as the 2nd parameter to the constructor.

```
$myLimitedDetailForm->setItemLimit(3); //Change the item limit to 3
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance53

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~380 days

Recently: every ~576 days

Total

9

Last Release

326d ago

Major Versions

0.1.1 → 1.0.02017-03-01

1.0.x-dev → 2.0.02019-03-06

2.x-dev → 3.0.02025-06-26

### 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 (19 commits)")[![aaronmacpherson](https://avatars.githubusercontent.com/u/20426496?v=4)](https://github.com/aaronmacpherson "aaronmacpherson (1 commits)")[![DoggersHusky](https://avatars.githubusercontent.com/u/8750719?v=4)](https://github.com/DoggersHusky "DoggersHusky (1 commits)")

---

Tags

silverstripegridfieldrelationship

### Embed Badge

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

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

###  Alternatives

[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

971.8M235](/packages/symbiote-silverstripe-gridfieldextensions)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

941.2M50](/packages/undefinedoffset-sortablegridfield)[unclecheese/betterbuttons

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

85544.9k19](/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.

2029.8k1](/packages/webbuilders-group-silverstripe-frontendgridfield)[milkyway-multimedia/ss-gridfield-utils

A collection of GridField components that you can use with any GridField, including Editable Rows and amy more

207.3k2](/packages/milkyway-multimedia-ss-gridfield-utils)

PHPackages © 2026

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