Accent Fields Files

Multiple

Many files, ordered — press kits and board minutes; admin type Files.


Many files, ordered: the Files kind's Multiple shape. Stores a collection with allowed_types: ['document', 'video'], boundary-enforced. In the admin this is the Files field type.

Declaring one

Label Board minutes
Key board_minutes
Data type collection
Constraint allowed_types: ['document', 'video']

An example

<ul>
  <% for (const f of board_minutes ?? []) { %>
    <li><a href="<%= f.src %>"><%= f.title || f.filename %></a>
        <span class="text-muted">(<%= f.extension %>)</span></li>
  <% } %>
</ul>

The list wakes to resolved objects — documents carry extension for exactly this label.

The mechanics are a collection's

Ordering, taxonomy filters, and item limits come from the media collection machinery — read that page for the full story.

When the other shape fits

One download is Single.