If I have a controller - Destinations, with topbar menu with the same name. I'd like to have a left sidebar with Dest1, Dest2, Dest3 items that showup/hide when I click the Destinations top menu. However, I want the sidebar to stay visible all the time if I choose Dest1, Dest2 or Dest3 which are links to different views. So far I have this in Destinations index view but but I don't want to repeat this below in every item in a sidebar menu.
I'd like to also sidebar item remained highlighted depending on what was selected. Topbar menu is defined in /-Layout view, should I put side bar there too? Thanks.
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<ul class="nav navbar-fixed-side navbar-fixed-side-left">
<li>@Html.ActionLink("Dest1", "Dest1", "Destinations")</li>
<li>@Html.ActionLink("Dest2", "Dest2", "Destinations")</li>
<li>@Html.ActionLink("Dest3", "Dest3", "Destinations")</li>
</ul>
</div>
.....
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…