PHPackages                             gurucomkz/doubleselectrelation - 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. [Admin Panels](/categories/admin)
4. /
5. gurucomkz/doubleselectrelation

ActiveSilverstripe-vendormodule[Admin Panels](/categories/admin)

gurucomkz/doubleselectrelation
==============================

Admin input with two selects

v1.2.2(2y ago)02.4kBSD-3-ClausePHP

Since Oct 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gurucomkz/silverstripe-doubleselectrelation)[ Packagist](https://packagist.org/packages/gurucomkz/doubleselectrelation)[ RSS](/packages/gurucomkz-doubleselectrelation/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Silverstripe two-column relation picker component
=================================================

[](#silverstripe-two-column-relation-picker-component)

Old-fashioned component with left column with available options, right column with selected ones and some buttons to move elements between those. Has filter fields to look up for the elements in the columns.

[![](example.png)](example.png)

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

[](#installation)

```
composer require gurucomkz/doubleselectrelation
composer vendor-expose
```

Usage
-----

[](#usage)

```
$offersList = Offers::get();
$offersSelector = DoubleSelectRelation::create('Offers', null, $offersList);
$fields->addFieldToTab('Root.Main', $offersSelector);
```

### Select custom Title

[](#select-custom-title)

Declare a field (i.e. `LongTitle`) or a getter (i.e. `getLongTitle()`) in your model and do like this:

```
DoubleSelectRelation::create('Offers', null, $offersList)
    ->setTitleField('LongTitle');
```

### Enable preview

[](#enable-preview)

You may want to let users check out the options before working with them. It can be done like this:

```
DoubleSelectRelation::create('Offers', null, $offersList)
    ->setAllowPreview(true);
```

It will create a button in every line, which by clicking will display a readonly CMS form in a modal box.

Additionally, you can declare method `getPreviewCMSFields()` in your related model to make a totally custom preview form.

TODO
----

[](#todo)

- Checks for changes and reporting to the form to trigger "Save" button activation
- Some API maybe for programmatic control over options?

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~243 days

Total

4

Last Release

983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a57f110fa33aaaed9ae0b84b5ed8a82dcb7ded56123df5ca0d225b3206e5a484?d=identicon)[gurucomkz](/maintainers/gurucomkz)

---

Top Contributors

[![gurucomkz](https://avatars.githubusercontent.com/u/12028675?v=4)](https://github.com/gurucomkz "gurucomkz (11 commits)")

---

Tags

silverstripe

### Embed Badge

![Health badge](/badges/gurucomkz-doubleselectrelation/health.svg)

```
[![Health](https://phpackages.com/badges/gurucomkz-doubleselectrelation/health.svg)](https://phpackages.com/packages/gurucomkz-doubleselectrelation)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[silverstripe/admin

SilverStripe admin interface

262.8M385](/packages/silverstripe-admin)[colymba/gridfield-bulk-editing-tools

Silverstripe CMS GridField component to upload images/files and edit records in bulk

89695.8k42](/packages/colymba-gridfield-bulk-editing-tools)[stevie-mayhew/hasoneedit

Allows editing the fields of a has\_one object directly in the CMS

21276.0k11](/packages/stevie-mayhew-hasoneedit)[plastyk/dashboard

An extendable dashboard for Silverstripe

2045.0k2](/packages/plastyk-dashboard)

PHPackages © 2026

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