Link to home
Start Free TrialLog in
Avatar of Robert Treadwell
Robert TreadwellFlag for United States of America

asked on

Hide SiteMap Node

I have the following settings within my sitemap and web.config files however the sitemapnode still displays with roles that do not match allowed roles.
What else do I need to apply?

 'This file is actually located in ~/Forms/SignIn.aspx - do i need to spell relative path.
  <location path="SignIn.aspx">  
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>

    <siteMap defaultProvider="ListViewSiteMap" enabled="true">
      <providers>
        <add name="ListViewSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Navigation/ListViewNav.sitemap" securityTrimmingEnabled="true" />
      </providers>
    </siteMap>

            <siteMapNode url="" title="System Administration"  description="Secure Section of site for performing Administrative needs" roles="Administrator, Site Admin, Tier1" >
                <siteMapNode url="~/Forms/SignIn.aspx" title="Sign-In"  description="Sign-In" roles="Administrator, Site Admin"/>              
                <siteMapNode url="~/HelpCenter/HelpCenter.aspx" title="Help Center"  description="Find useful help tools to navigate and use ADCare Software" roles="*" />                
                <siteMapNode url="~/Lists_Views/TableList.aspx" title="Table Updates"  description="Add/Edit Table Data" roles="Administrator, Site Admin, Tier1"/>
                <siteMapNode url="~/Forms/ApplicationCarePlan.aspx" title="Application-Wide Care Plan"  description="Add/Edit Application Care Plans" roles="Administrator, Site Admin, Tier1"/>                
                <siteMapNode url="~/Lists_Views/PermissionsByRole.aspx" title="Default Permissions"  description="Add/Edit Default Permissions for Application Roles" roles="Administrator, Site Admin"/>
                <siteMapNode url="~/Account/SimpleRegister.aspx" title="Administration User Registration"  description="Add Default User for Registration" roles="Administrator"/>
            </siteMapNode>
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Yes try with

~/Forms/SignIn.aspx
ASKER CERTIFIED SOLUTION
Avatar of Robert Treadwell
Robert Treadwell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robert Treadwell

ASKER

The above solution worked for issue.