The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
457 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 ...
0
votes
2answers
105 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 ...
0
votes
1answer
113 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....
1
vote
1answer
2k 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 ...
0
votes
1answer
1k 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) { ...
0
votes
1answer
321 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....
0
votes
1answer
307 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 ...
0
votes
1answer
258 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 ...
3
votes
2answers
3k 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 ...
1
vote
2answers
231 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 ...
1
vote
1answer
562 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 ...
1
vote
1answer
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 ...