1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Hiding the link to a page

Hiding the link to a page

2 posts, 0 answered
  1. Julia Shah
    Julia Shah avatar
    13 posts
    Registered:
    03 Sep 2012
    17 Jul 2007
    Link to this post
    Hi,

    I have created a page and specified:
  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    18 Jul 2007
    Link to this post
    Hello Julia Shah,

    If you want to hide pages with Anonymous Access set to deny from the navigation, you should set the seurityTrimmingEnabled property of the Sitemap provider to true. Then the provider will not return any pages that the user has no permission to view. Note that this is the same mechanism as in standard ASP.NET. Make the following changes to the web.config:

    <siteMap defaultProvider="CmsSiteMapProvider" enabled="true"
        <providers> 
            <clear/> 
            <add name="CmsSiteMapProvider" description="Displays Cms Pages" type="Telerik.Cms.Web.CmsSiteMapProvider" securityTrimmingEnabled="true"/> 
        </providers> 
    </siteMap> 


    Best wishes,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered