How to define array of numbers and output it?
<p>How can I define an array of numbers and output each number in a for loop?</p>

<p>I tried it like this:</p>

<pre><code>  &lt;f:alias map="{numbers: [1,2,3,4,5,6]}"&gt;
    &lt;f:for each="{numbers}" as="number"&gt;
      &lt;p&gt;{number}&lt;/p&gt;
    &lt;/f:for&gt;
  &lt;/f:alias&gt;
</code></pre>

<p><strong>Result:</strong> </p>

<blockquote>
  <p>The argument "map" was registered with type "array", but is of type "string" in view helper "TYPO3\CMS\Fluid\ViewHelpers\AliasViewHelper"</p>
</blockquote>

<p>And like this:</p>

<pre><code>  &lt;f:alias map="{v:iterator.explode(content: '1,2,3,4,5,6')}"&gt;
      &lt;f:for each="{content}" as="zahl"&gt;
          &lt;p&gt;{zahl}&lt;/p&gt;
      &lt;/f:for&gt;
  &lt;/f:alias&gt;
</code></pre>

<p><strong>Result:</strong> No output.</p>