directus/directus

M2A Relation Display Not Showing Properly

Open

#25348 opened on Jun 24, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (25,193 stars) (3,505 forks)batch import
BugHelp WantedLow ReachMed ImpactStudioUX / DX

Description

To Reproduce

  1. Create 3 collections:
    • collection_one with name field (set as display template)
    • collection_two with title field (set as display template)
    • collection_three

Image

  1. Configure M2A relation on collection_three:
    • Select the Related Collections: collection_one, collection_two
    • Interface: Leave it empty as default
    • Display: Choose "Related Values"
  2. Create items:
    • Add records in collection_one (e.g., {name: "Ahmed"})
    • Add records in collection_two (e.g., {title: "Admin"})
  3. Link records in collection_three

Describe the Bug

What you will notice after the steps you have done is the following: Interface works perfectly thanks to the recent PR (https://github.com/directus/directus/pull/24503):

Image

But it's not working properly in the display:

Image

And if you added the related values manually in the display tab for example like this: {{collection}}: {{item:collection_one}} {{item:collection_two}} it shows like this:

Image

Expected Result: Same as the interface, it should show the collection name then the "display template" for the collection which is in our case title or name

Directus Version

v11.8.0

Hosting Strategy

Self-Hosted (Docker Image)

Database

No response

Contributor guide