.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

How to create sub-menu in Global-Navigation ?

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :SharePoint
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

View Complete Post

More Related Resource Links

Remove subsite names from global navigation (top) menu


I'm fairly new to SharePoint 2010 so don't take this as a more difficult question than it probably is.  The way I'm organizing my site is to hide current navigation (left menu) and have only the global navigation (top menu) with drop downs.  The only active links that I am showing are links to lists within my subsites.  I don't want users to be able to click on subsite links that seem to appear automatically in my top navigation.

I understand that I can turn off "show subsites" in Site Settings --> Navigation, but even with these boxes not checked, I still get links to my subsites showing up in the global navigation (top) menu. 

Ideally I just want the drop down menus and their links to to show, not the subsite names which I can't seem to turn off.  Any assistance is appreciated!




How to create a dynamically populated items in a listbox and use it as a navigation?

Hello, I am trying to create navigation inside a listbox menu. I load data from xml to populate a list. Each item in the list box should be a link or button. Then, I create a frame to load xaml pages in it. I tested to load pages employing button control, outside listbox with on click event and it worked well. However, I cannot make it work with list box items. I am hoping to get help from you. Any sample or ideas are highly appreciated. Below is the code:  XML: <?xml version="1.0" encoding="utf-8"?> <Pages> <page id="page01"> <name>Page 01</name> </page> <page id="page02"> <name>Page 02</name> </page> </Pages> C# to initiate a click o n listbox item and get the path to page: private void SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { ListBoxItem lbi = ((sender as ListBox).SelectedItem as ListBoxItem); string itemName = lbi.Content.ToString(); if ( Nav_ListBox.SelectedItem.Equals("Page01" ) ) { ContentFrame.Source = new Uri("Pages/Page01.xaml", UriKind.RelativeOrAbsolute); } } XAML:  <ListBox x:Name="Nav_ListBox" Margin="0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Background="#FFF2F2F2" ItemTemplate="{DynamicReso

Page to page navigation from listbox menu?

I am wondering if anyone can share with good sample on how to create menu populated in a listbox from xml and have page to page navigation between xaml pages. I need to have a unique Uri link associated with each item in the listbox. Any advice is highly appreciated. Thank you in advance,

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?

horizontal navigation menu instead of vertical

Hello I'm a newbie and using the internet/publication site type. Is there a simple way to have the Navigation (menu) oriented in a horizontal with dropdown menus instead of vertical? It would also be nice if the horizontal navigation wouldn't not scroll with the rest of the page. Thanks! Matt==GP Blog== http://dynamicssmallbusiness.blogspot.com/ ==Free GP Addons/Customizations/Tips== http://landiscomputer.com/offer/1010_GP_Newsletter.htm ==GP Tweets== http://twitter.com/search?q=%23dyngp#search?q=%23dyngp

Top navigation menu having submenu in Team site in MOSS2007

Hi, In MOSS2007, Collaboration portal site is showing sub menu on onmouseover of top navigation menu, but it's not showing in case of Team Site template. I would like to know how to achieve this. I tried to activate publishing feature on team site, but doesn't work.

CREATE GLOBAL CUBE statement - losing hierarchies due to slicing

Hi,   I have a SSAS cube from which I generate local cubes with the MDX statement below:   CREATE GLOBAL CUBE MyLocalCube   storage 'MyLocalCube.cub'   FROM [MyCube]  (          MEASURE [MyCube].[Measure1],          MEASURE [MyCube].[Measure2],           DIMENSION [MyCube].[Dimension1],          DIMENSION [MyCube].[Dimension2]          (             LEVEL [HLevel1],                     LEVEL [HLevel2],                     LEVEL [HLevel3],             MEMBER [Dimension2].[Hierarchy1].[HLevel2].&[MemberX]       ),         DIMENSION [MyCube].[Dimension3]  )   The problem is that this statement generates a local cube file which works fine but all other hierarchies defined in Dimension2 are not included. I cannot find the syntax for adding them manually. So, in other w

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"/>

How do I change the top menu navigation for layouts like Site Settings?

I used something similiar to what Kalik posted on this thread, however, I'm not seeing the same results in layouts like Site Settings.  Any answers would be appreciated. Thank you, Mike ADD TO TOP LINE! <%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> ADD IN HEADER AREA! <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" runat="server" SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false" TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"/> </HEAD> REPLACE STANDARD TOP NAV CODE! <!--- Modified Top Nav ---->    <SharePoint:aspmenu    ID="GlobalNav"    Runat="server"    DataSourceID="siteMapDataSource1"    Orientation="Horizontal"     MaximumDynamicDisplayLevels="1"     StaticPopoutImageUrl="/_layouts/images/menudark.gif"    StaticSubMenuIndent="0px"  &nb

Top navigation menu render problem

Hi, we have a problem with top menu used in a sharepoint site. There is a main site and one subsite wich inherits navigation from the parent. When we are viewing the main site top menu renders ok. When we are viewing child site, with some computers and browsers (not all) instead of the name of the parent site it apears the link. Name of the main site is 'Activity' Name of the subsite is 'Programs' Problem Accesing main site menu renders like ->    Activity  |   Programs Accesing child site menu renders like ->     sites/activity  |   Programs I have uploaded some image to clarify http://yfrog.com/jltopmenurendererrorp   At the master page the top menu is set in this way     <PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" EnableViewState="false" SiteMapProvider="CombinedNavSiteMapProvider" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="true" TrimNonCurrentTypes="Heading" /> <SharePoint:AspMenu ID="TopNavigationMenuV42" Runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>" UseSimpleRendering="true" U

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

How to create different color tab in sharepoint top navigation

Hello All,               I have got one requirement where i have to display different color for different tab in sharepoint for top navigation menu.Please suggest some links or ways to achieve this...Thanks

how do I achieve a reusable area in multiple views? (navigation menu)

I am new to mvc.I want to build my navigation so I can use it on multiple views.  How do I do this? Nested views?  Can someone please tell me the best practice and show me a quick example?

Put metadata navigation above quick launch menu

Hi, I have a problem with left quick lunch navigation. My need is to set my metadata navigation and filtering above quick launch menu. I have no found any artical about this. Does anyone have idea how to do this.  Thanks.

what are the best ways to create left hand navigation?



what are the best ways to create left hand navigation?

So that administrator of the site will be able to add or remove the nodes of left hand navigation on fly?


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