-
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
Visibility & resourceKey question #305
Comments
Visibility is a custom attribute. You can set it on MvcSiteMapNodeAttribute using the Attributes property. Note that due to limitations of .NET attributes, it is set using a JSON string (see #266). [MvcSiteMapNode(Title = "Some Page", Attributes = @"{ ""visibility"": ""MenuHelper,!*"" }")] As for implicit localization, see #228. It is currently only possible if using an external DI container and implementing |
Thanks for the fast response!
ps. I use VB |
This is due to a bug in the RouteValues collection - it was not passing the throwIfReservedKey argument when adding the Attributes, which was causing the error. It has now been fixed in v4.6.3, which will be available on NuGet in a few minutes. |
Thanks again! |
How can I set visibility on a MvcSiteMapNodeAttribute?
And how can I localize using the resourceKey?
The text was updated successfully, but these errors were encountered: