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

Forums / General Discussions / Showing secure pages in navigation and styling

Showing secure pages in navigation and styling

2 posts, 0 answered
  1. Orion
    Orion avatar
    54 posts
    Registered:
    02 Feb 2009
    11 Apr 2011
    Link to this post
    The default behavior for secure pages in Sitefinity, is for it to hide those pages from the navigation until you login.  I read in a previous post for 3.7, that you can show secure pages by adding the following code to web.config

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

    But what about in Sitefinity 4.0?  Is this still possible?

    And is there anyway to maybe assign classes to those menu items that are secure?  So basically, a secure page would clearly appear and illustrate the fact that you will have to login to see the content on that page.  Much like you see in the navigation on this site: http://www.ctam.com/pages/default.aspx.

    Thanks,
    Orion

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    12 Apr 2011
    Link to this post
    Hello Orion,

    In Sitefinity 4 you can create a custom role to which at a later moment you can assign permissions which can be inherited by certain pages. Lets have the case if you want users under the role " VIP " to have access to pages which are not shown on the public part of the website -  you need to create a specific role for them then assign it to the users and choose which pages to inherit the permissions. If you want the VIP pages to be seen by everybody but still to require a login you need to create a custom navigation widget (you can use RadMenu).
    For example you get all pages, check their permissions and display those who inherit special permissions in a different way ( color ). You can do this when you bind the RadMenu - inside ItemDataBound event of the control.

    Best wishes,
    Victor Velev
    the Telerik team

2 posts, 0 answered