title: web2py create dropdown layout.html menu
body: <p>I would like to create a drop down menu in my layout. The data for menu is read from menu.py </p>
  
  <p>this is my list for menu </p>
  
  <pre><code> response.menu_logged = [
  (T('Schedules'),URL('default','index')==URL(),URL('default','index')),
  (T('New schedule'),URL('script','edit')==URL(),URL('script','edit', args='new')),
  (T('Workers'),URL('settings','workers')==URL(),URL('settings','workers')),
  (T('Shifts'),URL('settings','turnusi')==URL(),URL('settings','turnusi')),
  (T('Config'),URL('settings','config')==URL(),URL('settings','config')),
  ]
  </code></pre>
  
  <p>Now I would like to put workers, shifts and config in one submenu (dropdown) called settings </p>
  
  <p>and in my layout.html</p>
  
  <pre><code> {{if auth.is_logged_in():}}
                          &lt;li{{ if response.menu_logged[0][1]: response.write(XML(' class="active"')) }}&gt;&lt;a href="{{ =response.menu_logged[0][2] }}"&gt;{{ =response.menu_logged[0][0] }}&lt;/a&gt;&lt;/li&gt;
                          &lt;li{{ if response.menu_logged[1][1]: response.write(XML(' class="active"')) }}&gt;&lt;a href="{{ =response.menu_logged[1][2] }}"&gt;{{ =response.menu_logged[1][0] }}&lt;/a&gt;&lt;/li&gt;
  
  
                          &lt;li{{ if response.menu_logged[2][1]: response.write(XML(' class="active"')) }}&gt;&lt;a href="{{ =response.menu_logged[2][2] }}"&gt;{{ =response.menu_logged[2][0] }}&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="https://sites.google.com/site/navodilawoshi/" target="_blank"&gt;{{=T('Help')}}&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>any suggestions?</p>
  
  <p>Id there is a possibility to do it with web2py and not html/css/js?</p>
  
  <p>thank you</p>