What could be the reason for this error when I’m targeting a global field?:
Impossible to access an attribute ("footer") on a boolean variable ("").
I created a global set Footer with a matrix field also named Footer, I'm trying to get its content via:
{% for block in footer.footer %}
{% if block.type == "column" %}
<div>
<h4>{{ block.headline }}</h4>
<div>{{ block.columnContent }}</div>
</div>
{% endif %}
{% endfor %}
footer
with the matrix fieldfooter
and the blockcolumn
with the fieldsheadline
andcolumnContent
and copied your code as it is with{% set footer = craft.globals.getSetByHandle('footer')%}
and it works. You error must be related to your fields/your field handles or the field types. Since we don't know your layout we can't really help you