Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

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

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

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!

share|improve this question
> but have limited knowledge on the controls (and can't seem to find an online resource for them) I've found this: Microsoft.SharePoint.WebControls namespace - which I swear was not easy to find if one does not know to look for the term "namespace"! I'm going to look through this and hope to find a clue somewhere. But I would still appreciate if anyone could help to point me in the right direction. – user38675 Jan 22 at 1:46

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.