-
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
Specify visibility on MvcSiteMapNode attribute? #113
Comments
I am using the latest build and using default visibility provider. I have provided visibility attribute at one node which i only want to appear in breadcrumbs and not in menu. The sitemapPathhelper is specified in visibility parameter with !* next to it from left to right. It seems to not even consider that in default provider. |
My question above is when creating nodes in code only. If using XML this is not an issue. In any case you have to setup the visiblity provider to use the provided 'FilteredSiteMapNodeVisiblityProvider' to get the functionality you are referencing above (not the DefaultSiteMapNodeVisibilityProvider - which does nothing..as you noted) |
BTW, I answered your SO post too. ;-) |
I have fixed this issue some time ago in v4, but we only got the Nuget packaging online recently. I would appreciate if you could verify the fix so we can close this issue. |
Thanks, i cant upgrade to this as application has gone in production. will On Fri, Jul 5, 2013 at 7:49 PM, NightOwl888 [email protected]:
_Email: *_farrukh@softwarestudio.co.uk This email is confidential, may be legally privileged or otherwise |
There seems to be no way to specify visibility or any other custom attribute on the [MvcSiteMapNode] attribute you declare in code.
I have a custom VisiblityProvider, but there is no way to get it parameters when declaring nodes in code. So I had to create a visibility provider for each possible parameter and then assign that to the MvcSiteMapNode attribute. Figured there was a better way?
Here is same question on SO: http://stackoverflow.com/questions/12790532/how-do-i-specify-an-mvc-sitemaps-visibility-attribute-using-code-based-attribute
The text was updated successfully, but these errors were encountered: