Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

How to create 2nd level top navigation menu in MOSS?

  Asked By: Nand    Date: Sep 05    Category: MOSS    Views: 1731

I want to build two levels of tab menus like msdn. I have created
site collection with publishing portal template. Under _cataloges
there is one BlueTabs.Master page, in that below are two navigation
controls:
As you can see for time being I have bind both to the same
datasource. I am not able to bind 2nd with my own custom data source.
Can anyone please tell me, Where should I place that custom data
source (in root level folder ?). I have tried all combinations.

<div class="topNav1">
<SharePoint:AspMenu ID="topNav1" Runat="server"
DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
StaticDisplayLevels="1" MaximumDynamicDisplayLevels="0"
ItemWrap="false" SkipLinkText="<%
$Resources:cms,masterpages_skiplinktext%>">
<StaticMenuItemStyle CssClass="topNav1Item"
ItemSpacing="0"/>
<StaticSelectedStyle CssClass="topNav1Selected"
ItemSpacing="0"/>
<StaticHoverStyle CssClass="topNav1Hover"/>
</SharePoint:AspMenu>
<PublishingNavigation:PortalSiteMapDataSource
ID="siteMapDataSource1" Runat="server"
SiteMapProvider="CombinedNavSiteMapProvider"
EnableViewState="true"
StartFromCurrentNode="true" StartingNodeOffset="0"
ShowStartingNode="false"
TreatStartingNodeAsCurrent="true"
TrimNonCurrentTypes="Heading"/>
</div>
<div class="topNav2">
<SharePoint:AspMenu ID="topNav2" Runat="server"
DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
StaticDisplayLevels="1" MaximumDynamicDisplayLevels="0"
SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>">
<StaticMenuItemStyle CssClass="topNav2Item" ItemSpacing="0"/>
<StaticSelectedStyle CssClass="topNav2Selected"
ItemSpacing="0"/>
<StaticHoverStyle CssClass="topNav2Hover"/>
</SharePoint:AspMenu>
<PublishingNavigation:PortalSiteMapDataSource
ID="siteMapDataSource2" Runat="server"
SiteMapProvider="CombinedNavSiteMapProvider"
EnableViewState="true"
StartFromCurrentNode="false" StartingNodeOffset="1"
ShowStartingNode="false"
TrimNonCurrentTypes="Heading"/>
</div>

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on How to create 2nd level top navigation menu in MOSS? Or get search suggestion and latest updates.




Tagged: