<p>You just need to define <code>entry</code>, which can be done with <a href="http://buildwithcraft.com/docs/templating/craft.entries" rel="noreferrer">craft.entries</a> the same way you’d fetch any other entry(s).</p>

<pre class="lang-twig prettyprint-override"><code>{% set entry = craft.entries.section('homepage').first() %}

{% for block in entry.aloneImages %}
    {# ... #}
{% endfor %}
</code></pre>

CC BY-SA 3.0
2014-10-16T18:38:56.733Z
2014-10-16T18:38:56.733Z
Brandon Kelly
<p>Just wondering how to pull content from a matrix field on my homepage into another .html file. Basically taking the content from a single and placing it into a different template. This is what I have so far: </p>

<pre><code>{% for event in entry.homepage %}
    {% for block in entry.aloneImages %}
        {% for asset in block.image %}
              &lt;img src="{{ asset.url }}" alt="{{ asset.title }}"&gt; &lt;br /&gt;
        {% endfor %}
        {{ block.source }}
        {{ block.credit }}
     {% endfor %}
{% endfor %}
</code></pre>

<matrix>
Pulling in matrix fields from a Single onto a different page
# Pulling in matrix fields from a Single onto a different page

(Asked by: username_0 on 2014-10-16)

Just wondering how to pull content from a matrix field on my homepage into another .html file. Basically taking the content from a single and placing it into a different template. This is what I have so far: 
{% for event in entry.homepage %}
    {% for block in entry.aloneImages %}
        {% for asset in block.image %}
               
        {% endfor %}
        {{ block.source }}
        {{ block.credit }}
     {% endfor %}
{% endfor %}

**Tags:** matrix

---

## 1 answers

### Answer by username_1 on 2014-10-16. Score: 5 | Accepted answer

You just need to define entry, which can be done with craft.entries the same way you’d fetch any other entry(s).
{% set entry = craft.entries.section('homepage').first() %}

{% for block in entry.aloneImages %}
    {# ... #}
{% endfor %}


---

