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

how to relate 2 channels / parent relationship fields HELP

Development and Programming

Eastwood Design's avatar
Eastwood Design
605 posts
8 years ago
Eastwood Design's avatar Eastwood Design

can someone help me get my head around a relationship field / parent? I have 2 channels. Clinic and People. The people channel has a relationship field to the clinic they work at.
When I am displaying the clinic channel I want to display the people that work there. This is not working:

Channel: Clinic Field: Title

Channel: People Field: {member_clinic} relationship field to Clinic

{ exp:channel:entries channel="clinic" limit="1" dynamic="yes"}
Clinic Name: { title }
People at this clinic: {parents channel="people" field="member_clinic"}
                                <div class="show">
                                        <strong>{parents:title}</strong>
                                        <div class="what">{parents:member_lastname}</div>
                                        <div class="when">{parents:member_firstname}</div>
                                </div>
                        {/parents}{ /exp:channel:entries }
       

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.