MOSS: Show Home on same level as children

2 posts, 0 answers
  1. Mike Sharp
    Mike Sharp avatar
    7 posts
    Member since:
    May 2009

    Posted 22 Nov 2009 Link to this post

    I'm using the PortalSiteMapDataSource in MOSS on a publishing site, and this is part of my my sitemap:

    Home
          - Community
          - Teams
          - Employee Resources

    etc.

    What I want is for the Home page link to show up on the main level of the navigation:

    Home    |    Community   |    Teams    |    Employee Resources

    I saw a related post for the Tabstrip, but this seems to actually show only the children, or renders the Home as the root tab, and the children as subtabs:

    http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/moss-and-radtabstrip-for-navigation.aspx

    Albert seems to be saying the PortalSiteMapDataSource works the way I want, but I don't see how.  I'm not anticipating needing anything below the second level, so I could use either the tabstip or the menu, I suppose.

    But how do I get the Home page showing up in the menu/tabstrip with it's children?

    My current code:
            <telerik:RadMenu ID="RadMenu1" DataSourceID="siteMapDataSource1" MaxDataBindDepth="2" runat="server" /> 
            <telerik:RadTabStrip ID="RadTabStrip1" DataSourceID="siteMapDataSource1" Skin="Web20" runat="server"/>  
            <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" Runat="server" 
                SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true" 
                StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false" 
                TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"  /> 
     



    Thanks in advance,
    Mike



  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 24 Nov 2009 Link to this post

    Hi Mike Sharp,

    I already replied to your ticket:

    You can use the following code to achieve that:

    RadMenu1.DataBind();
    RadMenu1.Items.AddRange(RadMenu1.Items[0].Items);


    Best wishes,
    Veselin Vasilev
    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.
Back to Top