I am using Entries Field to display related content. I have several Entries Field in an article and i also want to display the fields that are empty, but with their section name.... Is this even possible? I am quite new to Craft, so don't know if I am even in a right direction... Help will be highly appriciated!
{% set assets = craft.entries({
relatedTo: {
sourceElement: entry,
field: ['entry','entry2','entry3']
},
order: "sortOrder",
limit: null
})
%}
{% if assets %}
{% for asset in assets %}
{% if asset|title %}
{{ asset.section.name }}: {{ asset.title }}
{% else }
{{ asset.section.name }}: Empty
{% endif }
{% endfor %}
{% endif %}