More in this section

Forums / Developing with Sitefinity / Site Map Changes

Site Map Changes

11 posts, 0 answered
  1. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    07 Jan 2009
    Link to this post
    I am trying to get the sitemap to change depending on if the user is loged into the site or not.
    I set the Show in navigation to no, but I need to figure out who to show it if the user is loged into the site.  
    Is this possible?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Jan 2009
    Link to this post
    Hi Eric,

    Thank you for using our services.

    To hide pages between users in the admin part, you could create different roles with users. Then form permissions tab of each page you could specify whether this page will be visible for one or other role.

    Programmatically you could do this having landing page and then redirect users to their pages 

        if(Page.User.Identity.IsAuthenticated && strUserName=="Ivan"
        { 
            Response.Redirect("~/IvanPage.aspx"); 
        }  


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    07 Jan 2009
    Link to this post

    I have altered the permissons for the role to Allow View for all pages.
    The issue is on the page there is a rad menu that uses the SiteMapDataSource to as the DataSourceID.
    When the Anonymous user enters the site the rad menu displays the proper site map.  But once a user logs in there are two screens that I would like added to the siteMapDataSource.
    Alos the page that displays this rad menu is the Masterpage.

    <%@ Master Language="C#" %>
    <%@ Register Namespace="Telerik.Cms.Web" Assembly="Telerik.Cms" TagPrefix="sf1" %>
    <%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="radM" %>

    I can not seem to get to the code behind for this page.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Jan 2009
    Link to this post
    Hi Eric,

    Follow the instructions below:
        1. Select the page you want to hide in the RadMenu.
        2. Go to Properties.
        3. Expand section More options and set Deny for Anonymous access property.

    Hope this helps.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    08 Jan 2009
    Link to this post
    Ivan,
        
        I have tried this.  What happens with these settings is it still displays the Orders and Inventory tab on the rad menu even for the anonymous user.  When the anonymous clicks on the link it takes them to the login screen.  I am trying to avoid this screen from showing.  

        I have added a login section on the main screen that will allow the user to login into the site but I do not what the Orders and Inventory tabs to display untill the user has loged in.  The other menu tabs should display for all users including the anonymous user but these two tabs should only appear if the user is loged into the website.

    Thanks,
    Eric
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Jan 2009
    Link to this post
    Hello Eric,

    I see that you use on of the releases before 3.5. Could you tell me which version you use? Generally, the pages with Anonymous access set to Deny are not visible in the public part unless the user is authenticated. So, your two tabs should not be visible. Also, check whether there is a open login session (logout from Sitefintiy, close the browser and load the page where your RadMenu resides.)

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    08 Jan 2009
    Link to this post
    I am useing version 3.0
  8. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    08 Jan 2009
    Link to this post
    Version 3.0
    I have show in Navagation set to Yes
    Page Type normal page
    Anonymous access Deny
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    09 Jan 2009
    Link to this post
    Hello Eric,

    There are a lot of bugs that we fixed in 3.2. SP 2 hotfix 1616,. I suggest that you should upgrade your project to 3.2. SP 2 hotfix 1616 or to the last release of Sitefinity 3.5 1747. The patch could be found in your MyClient.net account.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    12 Jan 2009
    Link to this post
    Thanks for the info, but I was just looking at the comparison chart between the Communtiy Edition and the Standard Edition and saw the fact that Permissions in x out in the community.  I guess I should have stated this much earlier but we are currently testing the site using the communtiy edition, is this why the tabs are not working correctly?

    We plan are using the standard edition when we go live.

    Thanks, Eric
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Jan 2009
    Link to this post
    Hello Eric,

    In Sitefinity 3.0 standard, when you set a page with Anonymous access to deny, the page will not be visible in the RadMenu until you are not authenticated.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
11 posts, 0 answered