render menu in every view but not in index

HI sorry for english , i create an app , the index is the login page , depends on login i redirect to backend or frontend .

I have 2 question :

1: I have a vertical menu for backend and a vertical menu to frontend , in layout main i inserted the menu code , but in index (my login page ) i dont want see the menu . It’s possible ?

2: in layout main i inserted the menu (ok for bootstrap ,without widget):




<ul class="nav nav-pills nav-stacked">

  <li class="active"><a href="#">Home</a></li>

  <li class="dropdown">

    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Menu 1

    <span class="caret"></span></a>

    <ul class="dropdown-menu">

      <li><a href="#">Submenu 1-1</a></li>

      <li><a href="#">Submenu 1-2</a></li>

      <li><a href="#">Submenu 1-3</a></li>

    </ul>

  </li>

  <li><a href="#">Menu 2</a></li>

  <li><a href="#">Menu 3</a></li>

</ul>



Dropdown don’t go . Why?

tanks

Someone can help-me ?

You can check the current action in the layout and depending of it you show or not the menu :




///layouts/main.php

...

<?php if($this->context->controller->uniqueId != 'site' || $this->context->controller->action->id != 'login'): ?>

  <ul class="nav nav-pills nav-stacked">

     ...

<?php endif; ?>

...