Get the variables of a loop from an include file So my 1. file is &quot;_overview-topicTeaser.twig&quot; which is within a matrix:
{% include 'modules/module-squareteaser/_module-squareteaser' with {
  squareTeasers: block.topicTeaserItems.all(),
  squareteaserHeadline: block.topicTeaserItems.one().entryTopicHeadline
} %}

And my 2. file is &quot;_module-squareteaser.twig&quot;:


    &lt;div class=&quot;squareteaser__wrapper _parent-3-child&quot;&gt;
      {% for item in squareTeasers %}

        {% include 'modules/module-squareteaser/_module-squareteaser-item' with {
          headline: squareteaserHeadline
        } %}

      {% endfor %}
    &lt;/div&gt;


So i am looping in the 2. file the file &quot;_module-squareteaser-item.twg&quot; and want to put out the &quot;squareteaserHeadline&quot; in the frontend. But it always gives me the same headline from my first teaser in the loop, makes sense to me cause i am using the &quot;one()&quot; when i include the variable &quot;squareteaserHeadline&quot; in the first file.  But if i delete the &quot;one()&quot; i get nothing... so how do i get all teasers whith their own headline?
Can't you fetch all the blocks with block.topicTeaserItems.all()

{% include 'modules/module-squareteaser/_module-squareteaser' with {
  squareTeasers: block.topicTeaserItems.all()
} %}


And then you display the headlines with item.entryTopicHeadline

&lt;div class="squareteaser__wrapper _parent-3-child"&gt;
  {% for item in squareTeasers %}
    {% include 'modules/module-squareteaser/_module-squareteaser-item' with {
      headline: item.entryTopicHeadline
    } %}
  {% endfor %}
&lt;/div&gt;


A simplified version would look like

&lt;div class="squareteaser__wrapper _parent-3-child"&gt;
    {% for item in block.topicTeaserItems.all() %}
        {{ item.entryTopicHeadline }}
    {% endfor %}
&lt;/div&gt;