Add-SPONavigationItem

Synopsis

Adds a navigation node to a NavigationNodeCollection

Syntax

Add-SPONavigationItem -Collection <NavigationNodeCollection> -Title <String> -Url <String> [-External] [<CommonParameters>]

Description

Parameters

-Collection <NavigationNodeCollection>

The parent NavigationNodeCollection for the new Navigation Node.

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Title <String>

The Title for the new Navigation Node.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Url <String>

The Url for the new Navigation Node.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-External <SwitchParameter>

If present it the node will be created as an external link.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Add a link to bing

PS C:\> Get-SPONavigation -Web $ctx.Web | Add-SPONavigationItem -Title Bing -Url "http://bing.co.nz" -External

Related links

Get-SPONavigation
Clear-SPONavigation

Last edited Aug 5, 2014 at 1:06 AM by provokesolutions, version 15

Comments

No comments yet.