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

Forums / Developing with Sitefinity / Sitemap on 3.7

Sitemap on 3.7

6 posts, 1 answered
  1. Gokhan
    Gokhan avatar
    32 posts
    Registered:
    11 Jul 2008
    11 Sep 2009
    Link to this post
    Hi;
    I m extending RadTabStrip control in my project and getting Top level items on top navigation. Everything is working fine on Sitefinity 3.6 (my developer machine) but on staging environment "SiteMap.RootNode.ChildNodes.Count" returns 0 which has 4 childrens. Any idea?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    13 Sep 2009
    Link to this post
    Hi Gokhan,

    It is possible the Count to be null if you use your code before all items to be bound. Try calling DataBind and then:

            if (!Page.IsPostBack) 
            RadTabstrip1.DataBind(); 
            SiteMapNode rootNode1 = SiteMap.RootNode; 
            foreach (SiteMapNode node2 in rootNode1.ChildNodes) 
            { 
               //do something here 
            } 

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Gokhan
    Gokhan avatar
    32 posts
    Registered:
    11 Jul 2008
    14 Sep 2009
    Link to this post
    There is something wrong with my project setup but i dont know what? If i create a dummy project , things are working fine. But even on my faulty project if i create a new master page and put standard tabstrip control in it .It doesnt show first level navigation items. Even when i edit "tabstrip" properties and try to select "StartingNodeUrl" i get just root node which is "All Pages" and nothing more. But that sitemap works on Admin section which is "~/sitefinity/admin/Pages.aspx"
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    14 Sep 2009
    Link to this post
    Hello Gokhan,

    Do you have any pages on which you have set "Show in Navigation" to No or any restricted pages. This could be a possible reason for not showing the pages.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  5. Gokhan
    Gokhan avatar
    32 posts
    Registered:
    11 Jul 2008
    14 Sep 2009
    Link to this post
    Not really. It is a strange problem. When i change the connection string to another DB with same application which is Sitefinity Project, Sitemap works fine. But With My current DB it shows only "All pages" node.When i try to get Current node (in home page for example), it am able to populate current node but not parents,siblings or children.I deleted all pages.templates (Backup and /restore DB to development env.) from Sitefinity interface but it didnt help. Do you want me to provide sample Url and credentials to your email  address?
  6. Gokhan
    Gokhan avatar
    32 posts
    Registered:
    11 Jul 2008
    14 Sep 2009
    Link to this post
    ok. i got the problem. Client told us they published all those pages but they didnt publish first level pages , therefore Sitemap wasnt showing them. Thank you for your kind help. 
Register for webinar
6 posts, 1 answered