I have a section called "sidebar" that needs to be presented twice in my _Layout.cshtml. On PC, I want the section to be sung in the form of a left sidebar, but on mobile devices, I need to present the section as a Bootstrap Copible Nouveau.
This only uses bootstrap 3 classes Display navs on small and extra small devices:
For PC users this should be a left sidebar. It is hidden on small and extra small devices.
& lt; Div class = "row" & gt; & Lt; Div class = "col-md-2 left-sidebar hidden-x hidden-sm" & gt; & Lt; On one hand & gt; & Lt; Nav class = "main-nav" & gt; & Lt; Ul class = "main menu" & gt; @Render section ("Sidebar") & lt; / Ul & gt; & Lt; / Neo & gt; & Lt; / One side & gt; & Lt; / Div & gt; & Lt ;! - left-sidebar - & gt; & Lt; Div class = "col-xs-12 col-md-10 material-wrapper" & gt; @RenderBody () & lt; / Div & gt; & Lt ;! -. Content-Cover - & gt; & Lt; / Div & gt;
I have in my thoughts:
@section sidebar {...}
Calling the problem @RenderSection ("Sidebar")
Multiple times with the same section name. Any suggestions on how I can fix this?
No comments:
Post a Comment