0

I have a asp.net mvc 4 web application. and I use MvcSiteMapProvider to make my menu. I set visibility attribute at mvcSiteMapNode. like :

 <mvcSiteMapNode title="Verify Email" action="Verify" visibility="SiteMapPathHelper,!*" visiable="SiteMapPathHelper,!*"></mvcSiteMapNode>

Advanced Node Visibility with ISiteMapNodeVisibilityProvider

but I found it doesn't work.

Then I added FilteredSiteMapNodeVisibilityProvider to my project for testing. I set a breakpoint to "node.Attributes.ContainsKey("visibility")" and found ISiteMapNode can't get attribute "visibility". but I tried to set a custom attribute (ex. visiable), It can be get.

How can I do for the visibility attribute ??

NightOwl888
  • 55,572
  • 24
  • 139
  • 212
Shelly Chen
  • 85
  • 2
  • 11

1 Answers1

1

This was a bug in v4.4.7 that was fixed in v4.4.8 (see issue #262).

If you upgrade, the problem should go away. However, if you are still having problems, please open a new issue @ Github.

NightOwl888
  • 55,572
  • 24
  • 139
  • 212
  • Can you please help me with [this](http://stackoverflow.com/questions/29751962/is-there-a-simple-way-to-control-the-visibility-of-individual-items-in-mvcsitema) question? – Shimmy Weitzhandler Apr 20 '15 at 15:22