MvcSiteMapProvider Menu with Filter Attributes in the Controller Class in Asp.Net Mvc 5
问题 I am using this lib: https://github.com/maartenba/MvcSiteMapProvider I want to have a menu structure like this: <ul> <li><a href="/">Home</a></li> <li> <a href="#">Stuff</a> <ul> <li><a href="/Stuff/"<li> <li><a href="/Stuff/Add"<li> </ul> </li> </ul> I am using MvcSiteMapNode without xml; just with the decorator's way. So I have this Controller: [MvcSiteMapNode(Title = "Stuff", ParentKey = "root", Key = "stuff-key", Url = "#", ImageUrl = "fa-stuff")] public class StuffController : Controller