Is there a possibility to create headings with multiple links in the navigation bar (i.e. top link bar) in SharePoint online using c3 or PowerShell?
My initial guess was to use ClientContext
to gain access in the following way.
ClientContext clientContext = new ClientContext(siteUrl);
// Get the Quick Launch navigation node collection.
NavigationNodeCollection collQuickLaunchNode = web.Navigation.QuickLaunch;
// Get the top navigatin node collection
NavigationNodeCollection collTopNavigationNode = web.Navigation.TopNavigationBar;
so here I can add a link using
NavigationNodeCreationInformation ciNavigationNode = new NavigationNodeCreationInformation();
ciNavigationNode.Title = "Title";
ciNavigationNode.Link = "www.Link.com";
collTopNavigationNode.Add(ciNavigationNode);
clientContext.Load(collTopNavigationNode);
clientContext.ExecuteQuery();
But what I want is actually a heading that contains links. The links that go in the headings are external links and links of other site collections.
Is there a possibility to to this? If so how?
I have the feature (SharePoint Server Publishing) to modify the navigation turned on and am using an Office 365 tenant with SharePoint Online.
Link
property of theNavigationNodeCreationInformation
? Set theIsExternal
property to true for the links. As to how to get them under the header, I do not know.