How to add sublevel in quick launch

Hi,

I'd like adding a sub level in my quick launch for having a third level. I modified my master page with StaticDisplayLevels="3"

<SharePoint:AspMenu id="V4QuickLaunchMenu" runat="server" EnableViewState="false" DataSourceId="QuickLaunchSiteMap" UseSimpleRendering="true" UseSeparateCss="false" Orientation="Vertical" StaticDisplayLevels="3" MaximumDynamicDisplayLevels="1" SkipLinkText="" CssClass="s4-ql" />

When you go to site settings/appearence/quick launch. You can only add heading or link but no possibility to add a sub heading

How can i achieve this?

i used powershell to add node but nothing more appears.

$web = get-spweb http://monurl $ql = $web.Navigation.QuickLaunch $heading = $ql | where {$_.title -eq "Lists"} $headingNode = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode("subhead", "") $heading.Children.Add($headingNode,$heading) $navnode = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode("Search the web with Google", "http://www.google.com", $true) $headingNode.Children.Add($navnode,$headingNode)

$web.Update()


Thanks for your help


May 25th, 2015 11:07am

hi

put $web.update(); in last line.

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 11:44am

Hi,

Was a missing from my copy/paste.

If i check with powershell the node are correctly created but i din't see them in my menu or in setiings

May 25th, 2015 3:18pm

Hi

here is the updated script.

I have replaced $heading.Children.Add($headingNode,$heading) as $heading.Children.AddAsLast($headingNode) and its working at my end.

$web = get-spweb http://monurl
$ql = $web.Navigation.QuickLaunch
$heading = $ql | where {$_.title -eq "Lists"}
$headingNode = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode("subhead","", $true)
$heading.Children.AddAsLast($headingNode)
  $navnode = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode("Search the web with Google4", "http://www.google.com", $true)
  $heading.Children.AddAsLast($navnode)
no need to write $web.update();

Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 2:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics