I’m having trouble getting the relationship field to work any further than one channel deep. To try to solve the problem I have replicated the example given in the User Guide of the games:teams:players.
I have added two fields to one of my channels as below:
Journal:
home Relationship (pointing to Teams channel, a single Team)
away Relationship (pointing to Teams channel, a single Team)
Teams
title Text Input
url_title Text Input
players Relationship (pointing to Players channel, multiple Players)
Players
title Text Input
url_title Text Input
first_name Text Input
last_name Text Input
number Text Input (Number)
This code:
The final scores were {home:title} with and {away:title} with .
Playing for {home:title} were:
{home:players}
<span class="player">#{home:players:number} {home:players:first_name} {home:players:last_name}</span>
{/home:players}
Playing for {away:title} were:
<div class="players">
{away:players}
<span class="player">#{away:players:number} {away:players:first_name} {away:players:last_name}</span>
{/away:players}then returns:
The teams were Example Team A and Example Team B with
Playing for Example Team A were:
Playing for Example Team B were:
So the multiple relationships always fail. This was the same result I was having with my intended Journal:Galleries:Images relationship.
I successfully have multiple relationships working one channel deep (Parent:children), but can never get them working at a Master:Parent:children level. Everything in the admin area seems exactly as yoy would expect - you can add multiple players to teams.
Does anyone have any ideas?
Many thanks
York