title: Typoscript combine header and subheader of content element header
body: <p>I want the following result with the TYPO3 content element "header":</p>
  
  <pre><code>&lt;header&gt;
      &lt;figure&gt;&lt;img src="image.png" alt="Page Title"&gt;&lt;/figure&gt;
      &lt;div&gt;
          &lt;h1&gt;Header&lt;/h1&gt;
          &lt;h2&gt;Subheader&lt;/h2&gt;
      &lt;/div&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>With the following typoscript i get the most of it, but i have a problem on wrapping the h tags</p>
  
  <pre><code>## Wrap header with &lt;header&gt;
  lib.stdheader.stdWrap.dataWrap.override = &lt;header class="header-n{cObj:parentRecordNumber}"&gt;|&lt;/header&gt;
  
  ## Header set with image
  lib.stdheader.10.11 = COA
  lib.stdheader.10.11 {
    1 = IMAGE
    1 {
      file {
          import.data = levelmedia:-1, slide
          treatIdAsReference = 1
          import.listNum = 0
      }
      altText = TEXT
      altText.data =  page : title
      titleText = TEXT
      titleText.data =  page : title
  
      wrap = &lt;figure&gt;|&lt;/figure&gt;
    }
    2 &lt; lib.stdheader.10.1
  }
  </code></pre>
  
  <p>But sadly the result is just:</p>
  
  <pre><code>&lt;header class="header-n1"&gt;
      &lt;figure&gt;&lt;img src="image.png" width="1112" height="546" alt="Pagetitle"&gt;&lt;/figure&gt;
      &lt;h1 class="csc-firstHeader"&gt;Header&lt;/h1&gt;
      &lt;h2&gt;Subheader&lt;/h2&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>Whats the magic to get h1 &amp; h2 wrapped?</p>
  
  <p>if i do it like that</p>
  
  <pre><code>2 = COA
  2 {
    1 &lt; lib.stdheader.10.1
    2 &lt; lib.stdheader.10.2
    wrap = &lt;div&gt;|&lt;/div&gt;
   }
  </code></pre>
  
  <p>the header text is just doubled like</p>
  
  <pre><code>&lt;header class="header-n1"&gt;
      &lt;figure&gt;&lt;img src="image.png" width="1112" height="546" alt="Pagetitle"&gt;&lt;/figure&gt;
      &lt;div&gt;
          &lt;h1 class="csc-firstHeader"&gt;Header&lt;/h1&gt;
          &lt;h2 class="csc-firstHeader"&gt;Header&lt;/h2&gt;
      &lt;/div&gt;
      &lt;h2&gt;Subheader&lt;/h2&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>I´m using TYPO3 6.2</p>