Search by

eminos / statamic-field-item-relationship

eminos

A Statamic addon that adds a Field Item Relationship fieldtype.

Package info

github.com/eminos/statamic-field-item-relationship

Type:statamic-addon

pkg:composer/eminos/statamic-field-item-relationship

Fund package maintenance!

eminos

Statistics

Installs: 8 279

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

v2.1.0 2026-12-01 09:37 UTC

This package is auto-updated.

Last update: 2026-12-01 10:54:36 UTC


README

Pick 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.

๐Ÿ“– Documentation ยท Getting started ยท The fir tag

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 labelled with each person's name and role, with Alice selected.

Install

composer require eminos/statamic-field-item-relationship

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

Statamic version Add-on version Branch
Statamic 3, 4, 5 1.x 1.x
Statamic 6 2.x main

Features

A List field called Sizes and a select dropdown offering the same sizes

Any list is a source
List, Grid, Replicator, Array, Checkboxes or Assets. The source is a sibling field, an ancestor, or a field in a Global set (multisite aware).
Sources โ†’

An image grid picking the hero image from the entry's gallery

Pick images from a gallery
Point it at an Assets field and editors click thumbnails. Templates get real Asset objects, so url, alt and Glide work as usual.
Assets as source โ†’

The same options as a select dropdown, radio buttons, a button group and an image grid

Four input types
Select dropdown, radio buttons or checkboxes, button group, or an image grid. Single or multiple selection, with an optional maximum.
Input types โ†’

A Replicator set with its own images and a Cover picker for those images

Works inside Grid and Replicator
A field in a Replicator set or Grid row looks in its own row first, then walks up to the top level. Each set only sees its own items.
Nested sources โ†’

A Team Grid and a dropdown with labels like Carol โ€” Editor and a photo for each person

Your labels, your thumbnails
Build option labels from any key, or a template like ${o.name} โ€” ${o.role}, and show thumbnails from a photo column in Grid rows.
Labels & thumbnails โ†’

The fir tag in a template and the image it renders

The fir tag
Get the item an editor picked from any template, with paths, loops and Global sets: fir:team_lead:name.
Template reference โ†’

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.

{{ 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 }}">

More examples, every tag syntax and the full field configuration are in the documentation: configuration reference ยท troubleshooting ยท changelog & upgrading.

Development

composer test        # Pest
npm test             # Vitest
npm run docs:dev     # docs site (VitePress, in docs/); run `npm --prefix docs install` once first

License

The MIT License (MIT). Please see License File for more information.

Made with care by kiwikiwi.