MVC SiteMap Hiding a node from menuhelper, but display in sitepathhelper (breadcrumbs)
问题 I'm trying to hide a node from my site menu, but display it in my breadcrumbs I'm following the tutorial here: https://github.com/maartenba/MvcSiteMapProvider/wiki/Advanced-Node-Visibility <mvcSiteMapNode title="Create Customer" controller="Customer" action="Create" area="Home" clickable="false" visibility="SiteMapPathHelper,!*"/> The above doesn't seem to work. It shows up both in my site menu, and breadcrumbs. 回答1: We created an OnlyBreadCrumbMVCSiteMapNodeAttribute. We decorate any code we