Accent Fields Images

Multiple

Many images, ordered — the gallery feeder; admin type Images.


Many images, ordered: the Images kind's Multiple shape — the gallery feeder. Stores a collection (an ordered list of library references) with allowed_types: ['image'], which the write boundary enforces: a pdf cannot ride in through any lane. In the admin this is the Images field type.

Declaring one

Label Gallery
Key gallery
Data type collection
Constraint allowed_types: ['image'] — stored settings, boundary-enforced

An example

At render the list wakes to an array of resolved images — no ids, no lookups, and no kind-check, which is the point of the constraint:

<div class="mk-row">
  <% for (const img of gallery ?? []) { %>
    <img src="<%= img.src %>" alt="<%= img.alt %>">
  <% } %>
</div>

The mechanics are a collection's

Ordering (drag order is content), taxonomy filters (terms/match), and item limits (min_items/max_items) all come from the media collection machinery — this field is that field, constrained. Read that page for the full story.

When the other shape fits

One picture — the hero, the portrait — is Single.