I have made a O2M relationship for showing the history of a cafe.
I want the list to show what I have in the Display Template, but it does not work.
The raw template: ({{Startjaar}} - {{Eindjaar}}) {{Eigenaar}}
I have to click on “1 Item” to reveal whats in it.
Maybe there is something I look over?
Thanks for advice.
Kind Regards,
Wannes
Heya! This is the expected behavior for a one-to-many field. Because an O2M can have multiple related items, it shows the count (“1 Item”) rather than rendering the template inline.
If you’re only ever linking a single Historiek record to a cafe, you’re probably looking for a many-to-one (M2O) relationship instead. That’ll render your display template inline as you’d expect 
Groetjes!