I am having a hard time with the related_entries tag in EE. It feels very limiting in a one-to-many relationship scenario. Am I missing something? Should I opt for a plugin like Playa to overcome the shortcomings of EE’s related_entries tag? http://pixelandtonic.com/playa
For instance, a town has several related partners in another channel called town_partners. My primary channel is the towns channel, my secondary channel is the town_partners channel
I created a custom relationship field in the town_partners channel, it’s called ‘partner_with’.
I have a partner entry with a defined relationship for the city of Portland but this code doesn’t return any related entries, am I doing it backwards? You can see the live template here: http://ctenergychallenge.com/portland (search for ‘local partners’)
{exp:channel:entries channel="towns" limit="1" url_title="{last_segment}"}
{title}
<h4>Local Partners</h4>
<p> {related_entries id="partner_with"}<br />
{if no_related_entries}<br />
Coming soon.<br />
{/if}<br />
{title}<br />
{description}<br />
{website}<br />
<hr><br />
{/related_entries}</p>
<p>{/exp:channel:entries}Any insight on why this code does not work would be appreciated.