title: Typoscript - Splitting "media" and "imagecaption" simultaneously
body: <p>I have made a plugin where I store many images in the "media" field and jsut as many captions in the field "imagecaption".</p>
  
  <p>Now my wish is to display it like this:</p>
  
  <pre><code>image1.png
  caption 1
  image2.png
  caption 2
  image3.png
  caption 3
  </code></pre>
  
  <p>This is how ive been trying to do it, but its not working:</p>
  
  <pre><code>plugin.tx_myplugin_pi1 = COA
  plugin.tx_myplugin_pi1{
      10 = TEXT
      10.field = header
      10.wrap = &lt;h1&gt;|&lt;/h1&gt;
  
      20 = COA
      20{
          10 = TEXT
          10{
              field = media
              split{
                  token = ,
                  cObjNum = 1
                  1.current = 1
              }
          }
  
          20 = TEXT
          20{
              field = imagecaption
              split{
                  token.char = 10
                  cObjNum = 1
                  1.current = 1
              }
          }
      }
  }
  </code></pre>
  
  <p>But its not really working, as it shows first all the filenames and then the caption.</p>
  
  <p>How could I do it?</p>