3 sections:
- Works
- Discography
- Interpretes
In "Discography"
Matrix block calling entries from "Interpretes"
In "Works"
Relational field pulling entries from "Discography"
In that Work template I need to display the related entry title from Discography (first part of the code below: working) and the related Interpretes selected in Discography (second part of the code: not working)
Is that possible?
{# This first part displays correctly: #}
{% set relatedRecords = craft.entries.section('contenuDiscographie').relatedTo(entry) %}
{% for record in relatedRecords %}
<ul>
<li><a href="{{ record.url }}">{{ record.title }}</a></li>
</ul>
{# And trying to display the related entries from "Interpretes". That's where I'm stuck: #}
{% for block in entry.compDiscographie %}
{% set relatedPerformers = craft.entries.section('interpretes').relatedTo(block) %}
{% for performer in relatedPerformers %}
{{ performer.title }}
{% endfor %}
{% endfor %}
{% endfor %}
Tried to be as clear as possible... Thanks