Skip to main content
added 42 characters in body
Source Link
Tiago Duarte
  • 5.5k
  • 2
  • 22
  • 44

How can I replicate the "Add heading" functionality of the left quick launch bar with the client side object model? The

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

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

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()
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()

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()

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()
Source Link
vilmarci
  • 916
  • 2
  • 13
  • 34

Add navigation bar heading with CSOM

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()