We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE Relationships - Parent to Parent - See Related Parent's Children

How Do I?

Jeremy S.'s avatar
Jeremy S.
353 posts
7 years ago
Jeremy S.'s avatar Jeremy S.

I have what I thought was an obvious task, but I must be doing something incorrect or have encountered a bug.

I have a Parent relationship to another Parent. The parents are teams, and sometimes teams partner, so through the relationship of parent to parent, when looking at one team, I can show the applicable partner team(s)

In my template, I am outputting the first parent (team)/children (members) without issue.

But when I try to output the children of the relationship, it works, but only shows one entry no matter what parameters I play with. It’s not looping through showing them all.

{rel_partner_teams}
  <div class="member_img">
    {rel_partner_teams:rel_team_members:file_member_photo}
  </div>
{/rel_partner_teams}

Am I going about this wrong? Like I said it works, but will only show the first entry/child in the relationship.

       
Jeremy S.'s avatar
Jeremy S.
353 posts
7 years ago
Jeremy S.'s avatar Jeremy S.

NM. Was thinking about it wrong. Via siblings is how I should have approached it.

EDIT > Actually it’s still not as desired. With siblings I am getting entries from the other parent’s relationships when I only want the direct relationship to the entry viewed. So I assume back to the idea of getting the related parents children. Any help would be appreciated.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.