title: Bootstrap sidebar dropdown menu
body: <p>Is there a bootstrap-based sidebar navigation panel with a drop down? I've looked extensively and cannot locate one. Here is my current code (It creates a sub menu but the drop down is unfunctional):</p>
  
  <pre><code>            &lt;div class="col-sm-3 col-md-2 sidebar"&gt;    
                 &lt;ul class="nav nav-sidebar"&gt;     
                      &lt;?php foreach ($this-&gt;container as $page): ?&gt;
                          &lt;?php if( ! $page-&gt;isVisible() || !$this-&gt;navigation()-&gt;accept($page)) continue; ?&gt;
                              &lt;?php if(isset($page-&gt;pages) &amp;&amp; count($page-&gt;pages)):?&gt;
                                  &lt;li class="dropdown open"&gt;
                              &lt;a href="&lt;?php echo $page-&gt;getHref() ?&gt;" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true"&gt;
                                &lt;?php echo $this-&gt;translate($page-&gt;getLabel()) ?&gt;
                              &lt;/a&gt;
                                  &lt;ul class="dropdown-menu" role="menu"&gt;
                                      &lt;?php foreach($page-&gt;pages as $subpage):?&gt;
                                      &lt;li&gt;
                                          &lt;a href="&lt;?php echo $subpage-&gt;getHref();?&gt;"&gt;
                                              &lt;?php echo $this-&gt;translate($subpage-&gt;getLabel());?&gt;
                                          &lt;/a&gt;
                                          &lt;?php if(isset($subpage-&gt;pages) &amp;&amp; count($subpage-&gt;pages)):?&gt;
                                              &lt;ul class="dropdown-menu" role="menu"&gt;
                                              &lt;?php foreach($subpage-&gt;pages as $innerpage):?&gt;
                                                  &lt;li&gt;
                                                      &lt;a href="&lt;?php echo $innerpage-&gt;getHref();?&gt;"&gt;
                                                          &lt;?php echo $this-&gt;translate($innerpage-&gt;getLabel());?&gt;
                                                      &lt;/a&gt;
                                                  &lt;/li&gt;       
                                              &lt;?php endforeach;?&gt;
                                              &lt;/ul&gt;       
                                          &lt;?php endif;?&gt;
                                      &lt;/li&gt;
                                      &lt;?php endforeach;?&gt;
                                  &lt;/ul&gt;
                                  &lt;?php else:?&gt;
                                      &lt;li&gt;
                              &lt;a href="&lt;?php echo $page-&gt;getHref() ?&gt;"&gt;
                                &lt;?php echo $this-&gt;translate($page-&gt;getLabel()) ?&gt;
                              &lt;/a&gt;
                              &lt;?php endif;?&gt;                
                        &lt;/li&gt;
                         &lt;?php endforeach ?&gt;
                    &lt;/ul&gt;
                &lt;/div&gt;
  </code></pre>