.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Show SubSites as Drop Down in Global Navigation

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint

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?

View Complete Post

More Related Resource Links

Display subsites as drop down menu in top navigation



I want to display subsites as drop down menu in top navigation can any one help me please

Problem with Global Navigation Excludes in VS workflow

Hi All I need help for WSS Global Navigation problem. I have one Visual Studio Workflow. In that I written following code. string globalNavExcludes = String.Empty; SPWeb webSite = MSDNSiteCollection.RootWeb; // _GlobalNavigationExcludes property contains a delimited string of  // GUIDs identifying the Id of each site to be excluded from global // navigation   if (webSite.AllProperties.ContainsKey("__GlobalNavigationExcludes")) {   globalNavExcludes =      webSite.AllProperties["__GlobalNavigationExcludes"].ToString(); }   SPWeb newsSite = MSDNSiteCollection.AllWebs["News"]; // string is delimited "{GUID};{GUID};", // use format code B to convert to string globalNavExcludes += String.Concat(ParentWeb.ID.ToString("B"), ";");   webSite.AllProperties["__GlobalNavigationExcludes"] = globalNavExcludes; webSite.Update(); After run this code workflow, I loss my Home from Navigation. Now I was unable to open my application. It is giving "Error" on the top Navigation in place of Home. Error is: "An error occured while rendering navigation for requested URL: .........url of my workflow site.......Exception Message: An Item with the same Key has already been added. Stack Trace : at System.Throwhelper.ThrowArgumentException(ExceptionResour

Global Navigation across Site Collections

MOSS 2007 Global Navigation across Site Collections I have couple of questions. a) Is there an easy way to share a global navigation between site collections? b) Portal has the navigation tabs (tab1..n). User doesn't have access to all the tabs, may have access to one or more tabs. Each tab represents a site collection. Is there a way to display the only tabs to which the users have access? If we can develop using SDK, please provide some hints.   Thanks,

GLobal navigation

All my sub-sites are using the global navigation bar. The global navigation displays. 2 levels for some sites. For one of my sites, I am able to view the global navigation bar, but the links with 2 levels do not seem to come up. its working fine with all the other sites. I have also set the property to inherit from the master page, What could be the problem?

Can not show image in Filter drop down menu in SPGridView - Sharepoint 2007

Hi, I can not show image in the filter drop down menu (at header) of SPGridView in Sharepoint 2007.  For example: I have 3 rows as "_layout/images/1.gif", "_layout/images/2.gif", "_layout/images/3.gif". When user click on the column's header, the SPGridView just displayed filter menu and it always displayed the text (_layout/images/1.gif) not an image as I expected. So please help me to solve this problem. Thanks a lot Dan

how to hide root site node in top/global navigation in sharepoint 2010

how to hide root site node in top/global navigation in sharepoint 2010? I tried to use below provider but it sharepoint asp menu still shows root site as first item. We would like to show only subsites on top nav bar which is Out of box. <asp:SiteMapDataSource      ShowStartingNode="False"      SiteMapProvider="SPNavigationProvider"      id="topSiteMap"      runat="server"      StartingNodeUrl="sid:1002"/>

Top Global Navigation across site collections(?)

Hi, My understanding at the conference was that SharePoint 2010 closed the gap in navigation in that 2010 could see across site collections thus allowing for you to have visibility of those site collections in your global navigation.  However, I can't seem to locate this feature. Does anyone know how you can configure your global navigation to span across site collections? Thank you for your comments, Tim

Web Part Page doesn't show current navigation

Hi! I'm having a problem with the navigation of web part page in Sharepoint 2010. For starters I need to say that I am a web designer and learning to brand Sharepoint 2010 wich means I'm not that tech-savvy so bear with me. We have created an intranet publishing site with Sharepoint 2010 and I have designed a custom master page with styles through Visual Studio 2010. The intranet site looks fine with the new design and I got navigation working with fly out menus, semantic subpages etc. The problem is: when I create a normal page the current sub-navigation is shown and it even shows my created web part page and all is fine, but once I go to this web part page, the left/sub-navigation disappears and I have no idea how to bring it back. The web part page uses the same master file as every other page. Everything with the the layout stays the same as my masterpage, except for the menu wich disappear so I thought it might be some property missing on the sub-navigation. Or do I need to edit something in the web part page layout in the gallery?: Master Page Gallery > BlankWebPartPage.aspx If so can I do it from Visual Studio? Here is the code for the left navigation menu: <!-- styles needed to have left nav to the left of the main area --> <div id="s4-leftpanel" class="s4-notdlg"> <!-- The quick launch bar / left navigation

Global Navigation dropdowns not working in IE7


I have done a lot of small (insignificant) javascript customizations to my master page, and I have done these customizations to other pages and had complete functionality.  My site's top navigation bar (global navigation) is not working properly in IE7.  The dropdown menus do not drop down.  


Has anybody worked through a similar experience?

Global navigation and partial views


I guess this is mostly a theory question since I'm very new to MVC.  If you have a global navigation tree, Countries --> States --> Cities for example, how do you correctly implement this in MVC2?  In my example, the view model for States does not contain Countries and the tree would break as it needs the Countries list to build the tree.

It sounds like this should be easy, but it doesn't sound right to include the entire model for a single State or City view.

How to create sub-menu in Global-Navigation ?

i want to create sub-menu for my sharepoint site like :

MainMenu > SubMenu > LinkSample1 .... LinkSamplen

assumming we have two Heading (MainMenu and SubMenu) and multiple link (like LinkSample1). i want place SubMenu underneath of MainMenu to accomplish this, but Headings can not place underneath of another Heading.
can anybody help me to workaround this problem ?
this is my Signature

Error adding Global Navigation Link


We the following error when adding a custom link to the Global Navigation at the top-level of the site (sub-sites inherit Global Nav):

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Here is the full error log:

09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Name=Request (POST:http://SERVER:80/_layouts/AreaNavigationSettings.aspx)	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Site=/	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFromUrlNoUpperCase failed with ArgumentException. Url = '/TEST/SITEPAGES/HOME.ASPX'.	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Monitoring          	b4ly	High  	Leaving Monitored Scope (CachedObjectFactory: Caching Page at: /TEST/SITEPAGES/HOME.ASPX). Execution Time=19.7002691682881	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.72 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFro

Navigation Drop Down too fast


in my SP 2010 I have a global navigation with about 20 drop down items per main-item.
When I move the mouse over an item the drop down opens immediately.
The problem is, if I navigate from top the drop down opens too fast. In some situations I just want to navigate to the main section.
Is there a solution do make an opening delay. A good example is on http://www.ferrari.com/English/Pages/Home.aspx.
There the navigation drop down opens after a while and not immediately.


Publishing Portal navigation Headings don't display in Global Nav.


I am having a problem displaying a 'Heading' on the Global Navigation bar, that has been manually added to the 'Navigation Editing & Sorting' section of a publishing portal sub site.

If I create a new page in the sub site it automatically appears on the Global navigation bar however when I manually enter a Heading with or without a link underneath, it won't display at all. Sites and Pages all work, it's just Headings that won't display.

I am thinking it has something to do with the default masterpage and default navigation provider.

Hoping somebody knows a workaround without having to create my own masterpage of hack the default one with SharePoint designer. 


Null values doesnot show up in custom edit form in a drop down choice menu


Hello guys,

I have a problem. I don't know why custom edit form is behaving like that.

I have a choice drop down with values  " ","Yes","No". For custom  new form, I can insert null values and everything is working fine.

But coming to this custom edit form which I created.  While editing, if we set a value to null and submit the form. It is getting the "Yes" as the value. It is skipping the null value and placing the "Yes" value. I have kept the default value for choice drop down as " ".(null too).

I don't know why it is not showing null value. Do guys have any idea or if came across anything like this. Please help

How to show Only Subsites under Current site in Quick launch?



I am working on my custom master page and i would like to show top navigation with 2 level deep. In quick launch, i would like to show only subsites under the parent site. Which datasource i need to use and how can i hide rest of them like Libraries,Lists, Discussions etc.

Any help is appreciated.


Is it possible to display Global Navigation on standalone Page?


I've created .aspx page that is not uses masterpage. Can i display Global Navigation there?

All my attempts to add GN has now effect :(

	<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend