{"action":"created","issue":{"url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/431","repository_url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider","labels_url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/431/comments","events_url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/431/events","html_url":"https://github.com/maartenba/MvcSiteMapProvider/issues/431","id":138545134,"number":431,"title":"\"Drop in\" replacement for default menus","user":{"login":"mwpowellhtx","id":1824187,"avatar_url":"https://avatars.githubusercontent.com/u/1824187?v=3","gravatar_id":"","url":"https://api.github.com/users/mwpowellhtx","html_url":"https://github.com/mwpowellhtx","followers_url":"https://api.github.com/users/mwpowellhtx/followers","following_url":"https://api.github.com/users/mwpowellhtx/following{/other_user}","gists_url":"https://api.github.com/users/mwpowellhtx/gists{/gist_id}","starred_url":"https://api.github.com/users/mwpowellhtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwpowellhtx/subscriptions","organizations_url":"https://api.github.com/users/mwpowellhtx/orgs","repos_url":"https://api.github.com/users/mwpowellhtx/repos","events_url":"https://api.github.com/users/mwpowellhtx/events{/privacy}","received_events_url":"https://api.github.com/users/mwpowellhtx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T18:15:39Z","updated_at":"2016-03-04T19:01:46Z","closed_at":null,"body":"Hello,\r\n\r\nInitially, I am looking for a \"drop in replacement\" for the default MVC5 \"menu\".\r\n\r\nIt is enumerated ``Home About Contact``, using CSS (presumably) formatted ``<li>`` tags.\r\n\r\nWhen I replace that with the [extension method](http://github.com/maartenba/MvcSiteMapProvider/wiki/HtmlHelper-Extensions) ``@Html.MvcSiteMap().Menu()``, this outlines vertically rather than horizontally.\r\n\r\nAlso, 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/>``.\r\n\r\nEventually, 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.\r\n"},"comment":{"url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/comments/192411881","html_url":"https://github.com/maartenba/MvcSiteMapProvider/issues/431#issuecomment-192411881","issue_url":"https://api.github.com/repos/maartenba/MvcSiteMapProvider/issues/431","id":192411881,"user":{"login":"mwpowellhtx","id":1824187,"avatar_url":"https://avatars.githubusercontent.com/u/1824187?v=3","gravatar_id":"","url":"https://api.github.com/users/mwpowellhtx","html_url":"https://github.com/mwpowellhtx","followers_url":"https://api.github.com/users/mwpowellhtx/followers","following_url":"https://api.github.com/users/mwpowellhtx/following{/other_user}","gists_url":"https://api.github.com/users/mwpowellhtx/gists{/gist_id}","starred_url":"https://api.github.com/users/mwpowellhtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwpowellhtx/subscriptions","organizations_url":"https://api.github.com/users/mwpowellhtx/orgs","repos_url":"https://api.github.com/users/mwpowellhtx/repos","events_url":"https://api.github.com/users/mwpowellhtx/events{/privacy}","received_events_url":"https://api.github.com/users/mwpowellhtx/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T19:01:46Z","updated_at":"2016-03-04T19:01:46Z","body":"For starters, does not seem to be honoring the CSS in the parent view(s):\r\n\r\nHead:\r\n\r\n````Razor\r\n@Styles.Render(\"~/Content/css\")\r\n@Scripts.Render(\"~/bundles/modernizr\")\r\n```\r\n\r\nBody:\r\n\r\n```\r\n<div class=\"navbar-collapse collapse\">\r\n    @Html.MvcSiteMap().Menu();\r\n    @Html.Partial(\"_LoginPartial\")\r\n</div>\r\n```\r\n\r\nWhich replaced:\r\n\r\n```\r\n<ul class=\"nav navbar-nav\">\r\n    <li>@Html.ActionLink(\"Home\", \"Index\", \"Home\")</li>\r\n    <li>@Html.ActionLink(\"About\", \"About\", \"Home\")</li>\r\n    <li>@Html.ActionLink(\"Contact\", \"Contact\", \"Home\")</li>\r\n</ul>\r\n```\r\n\r\nIn SiteMapNodeModelList.cshtml, I now the following; which could probably do some tweaking in there:\r\n\r\n```\r\n<ul class=\"nav navbar-nav\">\r\n    @foreach (var node in Model)\r\n    {\r\n        <li>\r\n            @Html.DisplayFor(m => node)\r\n            @if (node.Children.Any())\r\n            {\r\n                @Html.DisplayFor(m => node.Children)\r\n            }\r\n        </li>\r\n    }\r\n</ul>```\r\n\r\nAnd 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:\r\n\r\n```\r\n    if (string.IsNullOrEmpty(Model.Description))\r\n    {\r\n        @Html.ActionLink(Model.Title, Model.Action, Model.Controller)\r\n    }\r\n    else\r\n    {\r\n        @Html.ActionLink(Model.Title, Model.Action, Model.Controller, new { title = Model.Description })\r\n    }\r\n```"}}