title: How can I split and wrap HMENU items in TYPO3?
body: <p>I'm trying to create a custom menu with TypoScript, I have 8 Menü items an d I want to remove the <strong>css</strong> class "dropdown_1column and dropdown_1column" for the first 2 items and I do not know how? </p>
  
  <p>I have experienced that it is with the Typoscript onSplit function possible,
  whats wrong in this code?</p>
  
  <pre><code> wrap = &lt;ul class="levels"&gt;|&lt;/ul&gt;|| &lt;ul class="levels"&gt;|&lt;/ul&gt;|*|&lt;div class="dropdown_1column"&gt;&lt;div class="col_1 firstcolumn"&gt;&lt;ul class="levels"&gt;|&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;||&lt;ul class="levels"&gt;|&lt;/ul&gt;
  </code></pre>
  
  <p>The first two items should be wrapped in:</p>
  
  <pre><code> &lt;ul class="levels"&gt;|&lt;/ul&gt;
  </code></pre>
  
  <p>The remaining items should be wrapped in:</p>
  
  <pre><code> &lt;div class="dropdown_1column"&gt;&lt;div class="col_1 firstcolumn"&gt;&lt;ul class="levels"&gt;|&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>here ist my html output:</p>
  
  <pre><code>&lt;li&gt;
     &lt;a class="drop" href="blblbl/"&gt;item&lt;/a&gt;
        &lt;div class="dropdown_1column"&gt;
            &lt;div class="col_1 firstcolumn"&gt;
              &lt;ul class="levels"&gt;
                 &lt;li&gt;
                 &lt;li&gt;
                 &lt;li&gt;
              &lt;/ul&gt;
        &lt;/div&gt;
   &lt;/li&gt;
  </code></pre>
  
  <p>and it must be so</p>
  
  <pre><code>&lt;li&gt;
     &lt;a class="drop" href="blblbl/"&gt;item&lt;/a&gt;
        &lt;div&gt;
            &lt;div&gt;
              &lt;ul class="levels"&gt;
                 &lt;li&gt;
                 &lt;li&gt;
                 &lt;li&gt;
              &lt;/ul&gt;
        &lt;/div&gt;
   &lt;/li&gt;
  </code></pre>
  
  <p>Thank You for Help.</p>