Skip to content

Statamic 6 add-onPick items from another field.

Let editors choose a Grid row, a List value, an image from a gallery or an option from a Global set. The choices always come from the content you already have.

A Team Grid with four rows on the left, and a Field Item Relationship field on the right that turns those rows into an image grid, with Alice selected.A Team Grid with four rows on the left, and a Field Item Relationship field on the right that turns those rows into an image grid, with Alice selected.

Install

One composer command ​

Requires PHP 8.3+ and Statamic 6 (the image grid needs 6.44+). Add a Field Item Relationship field to any blueprint and point it at a source field.

bash
composer require eminos/statamic-field-item-relationship

Using Statamic 3, 4 or 5? Use the 1.x branch.

In your templates

Get the picked item back ​

The field saves a reference: a value, key, index, row ID or object, you choose with Save as. The fir tag looks up the item it points to, from a sibling field or a Global set.

antlers
{{ fir:team_lead }}
  <strong>{{ name }}</strong>, {{ role }} · {{ email }}
{{ /fir:team_lead }}

{{# Assets sources augment to real assets #}}
<img src="{{ glide :src="hero_image" width="1200" }}" alt="{{ hero_image:alt }}">

See it in action

Live, nested and multilingual ​

The options follow the source while editors work, each Replicator set gets its own items, and Global sources switch with the site.

Live updates ​

Drag, remove or add images in the gallery and every picker follows instantly, before you save.

  • New uploads get thumbnails straight away.
  • Renamed or reordered List and Grid items show up in the options as you type.
  • A new Replicator set or Grid row works before the entry is saved.

How sources are found →

The control panel in Swedish: the pickers show Swedish brand colours, logos and offices from the Swedish Global setThe control panel in Swedish: the pickers show Swedish brand colours, logos and offices from the Swedish Global set

Multisite globals. Switch the entry to Swedish and the options come from the Swedish global.

A Replicator gallery block whose Cover picker only offers that block's own imagesA Replicator gallery block whose Cover picker only offers that block's own images

Nested sources. Each Replicator set picks its cover from its own images.

Released under the MIT License. Made with fruit by kiwikiwi