Looking to control how the navigation bar (menu) is controlled. I understand how the sitemap file contains the menu items, but how do you control what menu items are displayed if you are logged in? If you log in you see a menu and if your not logged in you see a differenct menu. Any help pointing me in the right direction is greatly appreciated. Scott
Taking the Personal Web Starter Kit as an example, the way it's done is through the securityTrimmingEnabled property of the siteMap provider. Part of the web.config looks like this:
Thanks Aristotle.. Setting the securityTrimmingEnabled='false' now shows all nodes in the Sitemap. One problem though.. I would still like to control what menu items appear based on who is logged in. I'm still now sure how or what controls how the menu appears. All my pages are in the root and my sitemap looks similar to your example. Thanks again....
Going with the same example I had earlier, the location element in the web.config is used to set the permissions for the particular sections of the site. You can add additional location elements. For example, to allow the Albums.aspx page to only be seen by your friends (assuming you have created a role called Friends), then add this in the web.config: