We are working on a website for a hospital, and have setup Physicians and Pages (Structure) channels, which both have associations (Playa fields) to a Specialties channel.
Physicians can be associated with multiple specialties.
Pages can be associated with multiple specialties.
On individual pages, we want to show Physicians that are associated with the same Specialties that the Page is associated with.
Does that make sense?
I can’t figure out how to get it to work… any thoughts?
I can get the ID’s of the specialties using {exp:playa:child_ids} but haven’t been able to get an channel entries loop based on that. Here’s what I’ve got that is not working:
{exp:channel:entries channel="static_pages" limit="1"}
{exp:playa:child_ids field="pages_specialty"}
{exp:channel:entries channel="physicians" limit="5" search:physicians_specialties"{exp:playa:child_ids field="pages_specialty"}"}
<li><a href="http://{path={channel_short_name}/{url_title}}">{title}</a></li>
{/exp:channel:entries}
{/exp:channel:entries}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.