Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [spnavigationnode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
5k views

Edit Suite Bar Links in SharePoint 2019

I have tried all of the solutions provided for editing the Text in the Nav Suite Bar in SharePoint 2019. I am trying to change the text from "SharePoint" to "Intranet" or the name of our company. I ...
user32414's user avatar
0 votes
2 answers
995 views

Adding a Child Node Link to Heading - SharePoint Navigation using JavaScript

I'm currently trying to create a "Child Node" using Javascript by grabbing the users input and selection of their "Heading" where the Child node is going to go under. function addNavigationNodesChild(...
ermalsh's user avatar
  • 225
3 votes
1 answer
4k views

Show and hide individual SubSites in SharePoint

I have created 5 subsites using structured navigation. How can I show only 2 subsites and hide other sites
Divya's user avatar
  • 179
2 votes
1 answer
107 views

Getting Navigation Items using Javascript - Issue with Displaying them

I have a function that spits out the Parent navigation node along with the Child navigation node. This function: function printNodesInfo(nodes){ nodes.get_data().forEach(function(node){ var ...
ermalsh's user avatar
  • 225
3 votes
1 answer
3k views

Weird error in powershell script when adding Navigation node, requires accessing site via browser to fix

I am creating a new site in 2013 with powershell (New-SPWeb) and attempting to set some Search Navigation settings. The problem I encounter is that my Get-SPWeb call fails until I access the site via ...
AMadKinnon's user avatar
0 votes
2 answers
400 views

Adding SPNavigationNode Shows Incorrect Title

When adding a navigation node as like so: foreach (SPNavigationNode node in web.Navigation.QuickLaunch) { if (node.Title == "Parent Title") { SPNavigationNode newNode = new ...
KidBatman's user avatar
  • 381
1 vote
1 answer
359 views

Navigation node description programmatically

How can we add navigation node description programmatically. I have this code: SPNavigationNode MyNav= new SPNavigationNode("Nav Text", "NavUrl", true); MyNav.Update(); currentNav....
SharePoint Freak's user avatar
2 votes
1 answer
3k views

The DataSourceID of 'V4QuickLaunchMenu' must be the ID of a control of type IHierarchicalDataSource

I am trying to make a left navigation bar to SharePoint 2010 with this teckniq=http://www.helpmeonsharepoint.com/2012/03/custom-sharepoint-top-menu-and.html I Have got this Error massage: The ...
Malin Nilsson's user avatar
0 votes
1 answer
2k views

Deleting all nodes from QuickLaunch

This is my code to delete the QuickLaunch Navigation Nodes. I am using the SharePoint 2013. public void 2013NodeOrders(string siteUrl, string quickLaunch) { ...
Binod's user avatar
  • 133
0 votes
1 answer
475 views

Why do I got an exception when I try to get the root node programmatically? System.Web.Security.FileAuthorizationModule.IsUserAllowedToFile

I am using sharepoint 2010. I try to get the rootnode programmatacilly by this code: var rootNode = PortalSiteMapProvider.GlobalNavSiteMapProvider.RootNode; But I got this exception: at System....
Ola's user avatar
  • 4,385
0 votes
1 answer
421 views

Create link "node" instead of "NavigationNode"

I'm able to create subtitles in my sites. I create title under others, this create subtitles. I use New-Object Microsoft.SharePoint.Navigation.SPNavigationNode which create titles, but what the object ...
Nico's user avatar
  • 1,022
0 votes
1 answer
292 views

How to create 2 level left navigation with code

I need to create a function which will build 2 level left navigation programmatically. Function should take name/title and url. Can some body show me how to create using SPNavigation or any other SP ...
user avatar
3 votes
2 answers
4k views

TOP Site Navigation Broken. How can it be fixed?

Does anyone have any idea on how I can fix the navigation? I tried to go into Site Actions-->Site Settings --> Navigation but that page is not loading. I already tried the Enable/Disable publishing ...
MicroSumol's user avatar
1 vote
2 answers
359 views

Quick launch strange behaviour

I am accessing the quick launch nodes programmatically by using SPWeb currWeb = SPContext.Current.Web; SPNavigationNodeCollection nodes = currWeb.Navigation.QuickLaunch; foreach (SPNavigationNode ...
Davy's user avatar
  • 480
1 vote
1 answer
722 views

PublishingWeb.Navigation.CurrentNavigationNodes not including newly added items

I am trying to get the collection of all the items of left menu programmatically. When any new publishing page is added, it shows in OOTB left navigation, but when I try to get navigation nodes ...
Amit Thakkar's user avatar
1 vote
1 answer
3k views

c# iterating SPWeb.Navigation.GlobalNodes

When I try to iterate through the GlobalNodes collection using c# it is always empty unless I the site and manipulate the navigation settings manually. Can anyone tell me why this is and/or give an ...
Mauro's user avatar
  • 1,110