How can I replicate the "Add heading" functionality of the left quick launch bar with the client side object model?
The task looks simple. Update the left bar of several sites by with a few links grouped by header like:
Link group 1 Link 1 Link 2 Link group 2 Link 3
I can create the nodes and arrange them, but the "Link group x" nodes also turn into hyperlinks, even if I don't set the URL property of the NavigationNodeCreationInformation object in Sharepoint 2010, VB.
How can I either create a blank group without link?
The related part of the code (removed the actual links)
nciHead.Title = "Group 1" nciHome.Title = "Homepage" nciHead.IsExternal = True 'otherwise it fails nciHome.Url = "link1" nd = qlColl.Add(nciHead) nd.Children.Add(nciHome) nd.Update() context.ExecuteQuery()