I've got a Section that uses a Matrix field, that has a block, that has a categories field in it.
I want to find all entries using this Matrix field, who has a categories field and has a certain category selected.
I'm looking at the Relations documentation and trying the following code, but perhaps i'm barking up the wrong tree here?
{% set cat = craft.categories.slug('print') %}
{% set entries = craft.entries.section('projectsEntries').relatedTo({
sourceElement: cat,
field: 'contentBuilder.relatedCategories.content'
}) %}
{% for entry in entries %}
{{ entry.title }}
{% endfor %}