Address in a Matrix Field
# Access Address within Matrix
Generally speaking, accessing an Address field within a Matrix field is fairly straightforward...
{# Loop through Matrix blocks #}
{% for block in entry.myMatrixField.all() %}
{# Access each block's Address field #}
{% set matrixAddress = block.myMatrixAddressField %}
{# Then do whatever you want with each Address #}
{% endfor %}
# Output a Map of Matrix Blocks
Matrix Blocks are standard Elements (opens new window), so everything works quite similarly to Entries...
{# Get all Matrix blocks #}
{% set blocks = entry.myMatrixField.all() %}
{# Show a map with locations from all blocks #}
{{ googleMaps.map(blocks).tag() }}
Valid Locations
For more information, take a look at what are considered valid locations...