In channel A, we have a Neo field with a couple of different block types, in 1 of those types we have an entries field with channel B entries.
On the channel B entry, I'd like to find out if it is related to a channel A entry through that Neo field.
Going by https://craftcms.com/docs/relations and how it works for a Matrix field I have this:
{% set partOfChannelA = craft.entries.section('channelA').relatedTo({
targetElement: entryChannelB,
field: 'neoField.blockType.fieldHandle'
}) %}
But that doesn't work :) Am I missing something or does this simply not work with a Neo field? Thanks for helping out!
{% set partOfChannelA = craft.entries.section('channelA').relatedTo({ targetElement: entryChannelB, field: 'insertYourFieldIdHere' }) %}
or leave the field blank if your structure allows it – Robin Schambach Dec 20 '17 at 8:24