locked
Show SubSites as Drop Down in Global Navigation RRS feed

  • Question

  • I am migrating my SharePoint 2007 site to SharePoint 2010. I have recreated all the sites and subsites for my site. I'm having trouble getting the global navigation to show the sites as a drop down like I had in SharePoint 2007. My SharePoint navigation shows the link to the top level site (my home page), and tabs for each of the subsites. Some of those subsites have subsites as well, and it's these that I want to have show up in a drop down. I have tried customizing the master page but cannot seem to get the right combination to get it working.

    I updated the SharePoint:AspMenu attributes to use StaticDisplayLevels="2" and MaximumDynamicDisplayLevels="3". I've tried lots of other combinations, but I'm not getting the drop down menus showing the subsites. My SharePoint 2007 master page has StaticDisplayLevels="2" and MaximumDynamicDisplayLevels="1", which also is not working in SharePoint 2010.

    How do I get my drop downs to work?

    Friday, October 22, 2010 8:37 PM

Answers

  • Hi Robert.

     

    I am sure you have already done this but check the following settings.

     

    1.     The SharePoint Server Publishing feature is enabled on All Sites

    2.     The Navigation on all sites are set to:

    a.     Display the same navigation items as the parent site

                                              i.    Show subsites

                                             ii.    Show pages

     

    -ivan


    Ivan Sanders My LinkedIn Profile, My Blog, @iasanders.
    Saturday, October 23, 2010 3:40 AM

All replies

  • Hi Robert.

     

    I am sure you have already done this but check the following settings.

     

    1.     The SharePoint Server Publishing feature is enabled on All Sites

    2.     The Navigation on all sites are set to:

    a.     Display the same navigation items as the parent site

                                              i.    Show subsites

                                             ii.    Show pages

     

    -ivan


    Ivan Sanders My LinkedIn Profile, My Blog, @iasanders.
    Saturday, October 23, 2010 3:40 AM
  • Hi,

    Seen similar thread for http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/5fc51414-198c-47c6-871e-945dbbcaad8f

    See if it helps!!

     


    Pathik Rawal Blog: http://pathikhrawal.wordpress.com
    Saturday, October 23, 2010 6:10 AM
  • I did this and that worked. Thanks. Odd that you have to set Show Subsites on the subsite for it to so on the parent site, but then the more I use SharePoint, the odder it gets :)
    Thursday, October 28, 2010 2:48 AM
  • Here is my code in a custom Master.page I used SharePoint Designer to set the DataSourceID=SiteMapDataSource1 – in the GUI click the TopMenuNav bar click the top-right > arrow and then “New Data Source” use the default name.

    Code should look like this. I also changed the SPSiteMapProvider under
    SiteMapProvider in both ID= under AspMenu and SiteMapProvider under
    aspSiteMapDataSource

    <SharePoint:AspMenu
    	 ID="SPSiteMapProvider"
    	 Runat="server"
    	 EnableViewState="false"
    	 DataSourceID="SiteMapDataSource1"
    	 UseSimpleRendering="true"
    	 UseSeparateCss="false"
    	 Orientation="Horizontal"
    	 StaticDisplayLevels="2"
    	 MaximumDynamicDisplayLevels="4"
    	 SkipLinkText=""
    	 CssClass="s4-tn"/>
    	<asp:SiteMapDataSource runat="server" ID="SiteMapDataSource1" />
    	<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
    		<Template_Controls>
    			<asp:SiteMapDataSource
    			 ShowStartingNode="True"
    			 SiteMapProvider="SPSiteMapProvider"
    			 id="topSiteMap"
    			 runat="server"
    			 StartingNodeUrl="sid:1002"/>
    		</Template_Controls>
    	</SharePoint:DelegateControl>
    entire post at http://jbenisek.wordpress.com 

    Vote for Freedom - Vote to Protect our Country
    Saturday, January 22, 2011 9:58 PM
  • I have got it working by using

    StaticDisplayLevels="1"  (i.e Only show 1st level SiteMapNodes in static area)

    MaximumDynamicDisplayLevels="2" (depth for pop-up menus)

    But you need to make sure that in you SiteMapProvider (or the XML file that you feed to OOB provider) the hierarchy is proper. SubWebs have to under SPSites node.

    • Proposed as answer by sangeet ahuja Friday, March 18, 2011 2:37 AM
    Friday, March 18, 2011 2:37 AM