A year ago I asked this question and thanks to the answers I got things working. A year later and i'm trying to do the same thing on a different website... only this time it's not working!
- Section Handle = artist
- SuperTable Field Handle = lineUp
- SuperTable 'Entry' Field = artistPerforming, which is linked to Section 'artist'
Here's my code:
{% set reverseRelatedElements = craft.supertable.getRelatedElements({
relatedTo: {
targetElement: entry,
field: 'lineUp.artistPerforming'
},
section: 'artist'
}) %}
{% for eventLineUp in reverseRelatedElements %}
{{ eventLineUp.title }}
{% endfor %}
My SuperTable field is assigned to a Section with handle stageEvent, so from my stageEvent entry i'm trying to pull related entry information from Section artist.
Nothing is outputting but I don't get any errors??
Can anyone see what i'm doing wrong?
Many thanks
Martin