Overview of what I’m trying to do.
I have products and I have artists. I want to relate artists to a product in the artist template and in the product template, show which artists use that product.
I’m using EE 2.8.1
The Setup:
In the Artists channel: {artists}
The relationship field is: {artist_parent}
Relates to channel: {products}
The artists template works great as the admin manually relates products to the artists and everything renders fine. It is in the products template that I am having trouble trying to reverse relate the product to the artist.
The Product channel setup.
No relationship field (because it should be reverse related and not create double work).
So there is no “setup” needed. (right?)
The issue I think is in the products template:
<section class="wrapper maincontent">
<ul class="artist-list">
{exp:channel:entries channel="artists" orderby="random"}
<li>
{parents field="artist_parent"}
<h4>{parents:title}</h4>
<p> {/parents}<br />
</li><br />
{/exp:channel:entries}<br />
</ul><br />
</section>This is outside of the Products channel entries loop.
This does not work. I’ve stared at it and tried many things my eyes have glazed over. Can anyone help me out with this?
Thanks!