Are you using this is a display template for a specific club? And so you’re looking to display the players associated with that club, is that right? And the club ID field is in the players field group? What is the interaction with the member field? Displaying just the players associated with a given club should be simple enough using the relationship field you have now. The example I gave you would only work if you pushed the club ID into the URL in order to filter the player list based on the club you are viewing (and of course the segment number was just an example). How does the member field play into the display other than to identify to the logged in member which club is their “home” club?
Are you using this is a display template for a specific club?
Yes
And so you’re looking to display the players associated with that club, is that right?
Yes
And the club ID field is in the players field group?
I think so, I have a Relationship field in players channel to clubs channel.
How does the member field play into the display other than to identify to the logged in member which club is their “home” club?
I didn’t know what else to do to limit a members access to update club, team and player information associated with an overall club.
I get the club info by using the following.
{exp:member:custom_profile_data}
{exp:channel:entries channel="clubs" disable="categories|member_data|pagination" dynamic="no" entry_id="{exec_club}"}
<h5>Club Info:</h5>
<p>{/exp:channel:entries}<br />
{/exp:member:custom_profile_data}
The team info uses the custom field
{exp:member:custom_profile_data}
{exp:channel:entries channel="clubs" disable="categories|member_data|pagination" cache="yes" dynamic="no" entry_id="{exec_club}"}
{embed="clubhouse/team_list" entry_ids="{club_teams orderby="entry_id" sort="desc" }{entry_id}|{/club_teams}"}
{/exp:channel:entries}
{/exp:member:custom_profile_data}
I wasn’t too sure how the players where going to be added and what relationship to use between, teams and club as a player may play for each team within that club.
To get me started I thought that adding a relationship field between player and club as I have the entry_id in the custom field.
The SAEF for adding players will somehow add the club relationship using the custom field.
For listing the players I wanted to limit them by using the club relationship and custom field. This will then be used to edit the individual players and hopefully also allow me to add them into a fixture as playing.
Hope that makes sense.