title: typoscript two depending menus
body: <p>I'd like to have a horizontal menu at the top of the website and a vertical menu with the menu levels 2 and 3 at the left side of the website.</p>
  
  <p>Unfortunately my typoscript shows the same menu for both areas.</p>
  
  <p>Any ideas what's wrong?</p>
  
  <pre><code># Hauptmenu
  lib.mainMenu = HMENU
  lib.mainMenu.special = directory
  lib.mainMenu.special.value = 1
  lib.mainMenu.entryLevel = 0
  lib.mainMenu.1 = TMENU
  lib.mainMenu.1.NO {
    wrapItemAndSub = &lt;div class="grid_1_menu"&gt; | &lt;/div &gt; |*| &lt;div class="grid_1_menu"&gt; | &lt;/div &gt; |*| &lt;div class="grid_1_menu grid_1_menu_end"&gt; | &lt;/div &gt;
  }
  
  # Seitennavigation
  lib.subMenu= HMENU
  lib.subMenu.special = directory
  lib.subMenu.special.value = 1
  lib.subMenu.entryLevel = 1
  lib.subMenu.wrap = &lt;ul class="sub-menu" id="menu-level-1"&gt;|&lt;/ul&gt;
  lib.subMenu.1 = TMENU
  lib.subMenu.1.NO {
    wrapItemAndSub = &lt;li class="first"&gt; | &lt;/li&gt; |*| &lt;li class="middle"&gt; | &lt;/li&gt; |*| &lt;li class="last""&gt; | &lt;/li&gt;
  }
  
  lib.subMenu.2 &lt; lib.subMenu.1
  lib.subMenu.2.wrap = &lt;ul class="sub-menu" id="menu-level-2"&gt;|&lt;/ul&gt;
  </code></pre>