eminos/statamic-field-item-relationship
A Statamic addon that adds a Field Item Relationship fieldtype, letting you connect entries to specific items within other entries and manage those relationships directly from the control panel.
composer require eminos/statamic-field-item-relationship:^2.0. This is a Statamic addon, so there is no service provider to register — Statamic's addon autoloading picks it up and the fieldtype/tag appear automatically.^1.4 and treat this release as unavailable to you. Decide this before you touch any blueprint.src/Fieldtypes/ (the fieldtype config and its preProcess/preload behaviour) and src/Tags/ (the {{ fir }} tag). The Pest suite added in v2.0 is the most honest documentation of tag output — read the tests for {{ fir }} before you guess at a rendering problem.{{ fir }}. That end-to-end loop — blueprint → CP field → Antlers/Blade tag — is the whole package; once it works, the rest is configuration.if: conditions keyed off a FIR field, that visibility now tracks live edits in the publish form. Lean on this instead of hiding fields with custom JS.{{ fir }} as the single access point and style/loop around it — that keeps you free to change the target field later without touching every template. Wrap in {{ if fir }} for optional fields so an unset selection renders nothing rather than an empty block.<x-field-item :field="$entry->thing" />) so the Antlers call site is isolated to one file.{{ fir }} test suite means the tag's contract is now pinned; mirror that by writing feature tests that render your actual templates. That is the cheapest regression net for an addon whose output depends on blueprint config you also control.^2.0. Plan the addon upgrade as part of the Statamic 6 migration, not as an independent composer update.--force) into a clean diff before upgrading — a Vue 3-era release is a plausible time for template churn.php artisan statamic:stache:clear plus your view/response cache is step one of any "the tag renders nothing" debug session.{{ fir }} is usually a config problem, not a tag problem. Check, in order: the field has a saved value; the target field still exists under that handle (renames don't migrate stored data); the blueprint field is scoped to the right container/collection; and the entry is published in the current site. Multi-site installs should verify localisation of the target field, not just the relationship field.preProcess/preload for shaping what the CP receives, and the tag (now under test) as the stable public surface — prefer overriding tag output via a published view over patching src/.composer.json use "eminos/statamic-field-item-relationship": "^2.0" for Statamic 6 projects and "^1.4" for anything older, and note the choice in your upgrade runbook — this is exactly the kind of addon that gets dragged into an unintended major by a loose constraint.How can I help you explore Laravel packages today?