I have two variations on a site collection for different languages. They are using different master pages.
I would like the two variation sites to have different items in the top menu (i.e. global navigation), i.e. the items are in different languages.
I thought that the top level settings wouldn't matter, as long as for each variation, I have set up their own navigation items and not inherit from top level.
However, I cannot get this to work. I have checked the code in the Master Pages, but have limited knowledge on the controls (and can't seem to find an online resource for them). Here is my current set up:
Navigation Settings for Root
- Global navigation: Show Subsites
- Current navigation: Show Subsites
- Sorting: Sort manually
- Navigation Editing and Sorting:
- Global Navigation:
- Variation A Homepage
- Variation B Homepage
- Global Navigation:
Navigation settings for Variation A
- Global navigation: Display the navigation items below the current site
- Current navigation: Display only the navigation items below the current site
- Sorting: Sort manually
- Navigation Editing and Sorting:
- Global Navigation:
- A 1
- A 2
- A 3
- Global Navigation:
Master Page for Variation A
<asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
<SharePoint:AspMenu
ID="TopNavigationMenuV4"
Runat="server"
EnableViewState="false"
DataSourceID="topSiteMap"
AccessKey="<%$Resources:wss,navigation_accesskey%>"
UseSimpleRendering="true"
UseSeparateCss="false"
Orientation="Horizontal"
StaticDisplayLevels="1"
MaximumDynamicDisplayLevels="3"
SkipLinkText=""
CssClass="s4-tn"/>
<asp:SiteMapDataSource ShowStartingNode="False" SiteMapProvider="CombinedNavSiteMapProvider" id="topSiteMap" runat="server"/>
</asp:ContentPlaceHolder>
</asp:ContentPlaceHolder>
Navigation settings for Variation B
- Global navigation: Display the navigation items below the current site
- Current navigation: Display only the navigation items below the current site
- Sorting: Sort manually
- Navigation Editing and Sorting:
- Global Navigation:
- B 1
- B 2
- B 3
- Global Navigation:
Master Page for Variation B
<asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
<SharePoint:AspMenu
ID="TopNavigationMenuV4"
Runat="server"
EnableViewState="false"
DataSourceID="topSiteMap"
AccessKey="<%$Resources:wss,navigation_accesskey%>"
UseSimpleRendering="true"
UseSeparateCss="false"
Orientation="Horizontal"
StaticDisplayLevels="1"
MaximumDynamicDisplayLevels="3"
SkipLinkText=""
CssClass="s4-tn"/>
<asp:SiteMapDataSource ShowStartingNode="False" SiteMapProvider="CombinedNavSiteMapProvider" id="topSiteMap" runat="server"/>
</asp:ContentPlaceHolder>
</asp:ContentPlaceHolder>
With this set up, both Variation A and B sites and subsites link to:
- Variation A homepage
- Variation B homepage
i.e. The navigation for the root. Which is not what I want!
This is driving me crazy. I don't know if I'm just missing something. Hope you guys can help. :) Would appreciate it!