Hello,
I have a menu control which is based on a sitemap as below.
However whilst the security aspect is working i.e. users cannot access a page without being in the correct role the menu does not seem to hide any of the menu items.
I really want users only to see the help menu item before they log in, then after this point they should see all items unless they are External in which case the Uploads and Admin Items should be hidden.
Is this not possible or have I set up my sitemap wrong?
If I remove roles="*" from the first node no menu items are visible at all even after login?
Code:<siteMapNode roles="*"> <siteMapNode title="Courses" description="" urlRoute="Products" url="products" roles="*"> </siteMapNode> <siteMapNode url="Locations" title="Locations" description="" urlRoute="Locations" roles="Internal, ExternalAdmin"/> <siteMapNode title="Uploads" description="" urlRoute="Uploads" url="Uploads/Event" roles="Internal, ExternalAdmin"> </siteMapNode> <siteMapNode url="Admin" title="Admin" description="" urlRoute="Admin" roles="Internal, ExternalAdmin"> </siteMapNode>
<siteMapNode url="Help/0" title="Help and FAQ" description="" urlRoute="GSPHelp" roles="*"/>





Reply With Quote