This is a migrated thread and some comments may be shown as answers.

MOSS: Show Home on same level as children

1 Answer 29 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Mike Sharp
Top achievements
Rank 1
Mike Sharp asked on 23 Nov 2009, 04:59 AM
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



1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 24 Nov 2009, 02:56 PM
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.
Tags
Menu
Asked by
Mike Sharp
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or