Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-16T18:38:56.733Z
Answers.LastActivityDate: 2014-10-16T18:38:56.733Z
Answers.UserDisplayName: Brandon Kelly
Body: <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>
  
Tags: <matrix>
Title: Pulling in matrix fields from a Single onto a different page
ThreadText: # 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 %}
                <img src="{{ asset.url }}" alt="{{ asset.title }}"> <br />
          {% 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](http://buildwithcraft.com/docs/templating/craft.entries) the same way you’d fetch any other entry(s).
  
  ```twig
  {% set entry = craft.entries.section('homepage').first() %}
  
  {% for block in entry.aloneImages %}
      {# ... #}
  {% endfor %}
  
  ```
  
  
  ---
  
  