-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Drop in" replacement for default menus #431
Comments
For starters, does not seem to be honoring the CSS in the parent view(s): Head:
Body:
Which replaced:
In SiteMapNodeModelList.cshtml, I now the following; which could probably do some tweaking in there:
And in the clickable portion of the SiteMapNodeModel.cshtml, I now have the following; which I think is a closer approximation to the original ActionLink, but for being model-oriented instead of baked in:
However, this does not render the same as the "original" code. For the moment, it's one too many moving parts getting a handle on the site map itself, apart from the style classes. |
Sort of halfway there. In the MenuHelperModel.cshtml, ... Apparently I am looking at an old version of the NuGet package. Still want to support multiple top-level nodes; or at minimum can I inherit from the default provider to customize this behavior for the time being? Any idea when these sorts of details will be released? Thank you... |
The default templates are designed to work with the default MVC 3/4/5 themes (at least if you get the latest version of You have 4 options for changing the HTML helper output:
You might also want to have a look at this post for some ideas about using MvcSiteMapProvider with Bootstrap 3. The idea of the templates was to give the user of the packages ultimate control over the HTML, but if the defaults could be tweaked to be better in some way, contributions are welcome. |
Hello,
Initially, I am looking for a "drop in replacement" for the default MVC5 "menu".
It is enumerated
Home About Contact
, using CSS (presumably) formatted<li>
tags.When I replace that with the extension method
@Html.MvcSiteMap().Menu()
, this outlines vertically rather than horizontally.Also, I will be arranging hierarchical menus, with parent/children, and would like them to drop down. I did not see anything like an Expandable or Collapsible anywhere in the attributes of
<mvcSiteMapNode/>
.Eventually, I will want to work on my partials and outline a side bar to the left, but for now just want to notice a "seamless", more or less, transition.
The text was updated successfully, but these errors were encountered: