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(1y ago)41.9k↓52.6%4BSD-3-ClausePHPCI failing

Since Mar 1Pushed 1y 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 today

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

42

—

FairBetter than 88% of packages

Maintenance49

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

372d 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

951.9M271](/packages/symbiote-silverstripe-gridfieldextensions)[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

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

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

79554.0k19](/packages/unclecheese-betterbuttons)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[briceburg/silverstripe-pickerfield

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

2441.3k1](/packages/briceburg-silverstripe-pickerfield)

PHPackages © 2026

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