external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Adds a Client-Side Web Part to a client-side page
Add-PnPClientSideWebPart -DefaultWebPartType <DefaultClientSideWebParts>
-Page <ClientSidePagePipeBind>
[-WebPartProperties <PropertyBagPipeBind>]
[-Order <Int>]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Add-PnPClientSideWebPart -Component <ClientSideComponentPipeBind>
-Page <ClientSidePagePipeBind>
[-WebPartProperties <PropertyBagPipeBind>]
[-Order <Int>]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Add-PnPClientSideWebPart -DefaultWebPartType <DefaultClientSideWebParts>
-Section <Int>
-Column <Int>
-Page <ClientSidePagePipeBind>
[-WebPartProperties <PropertyBagPipeBind>]
[-Order <Int>]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Add-PnPClientSideWebPart -Component <ClientSideComponentPipeBind>
-Section <Int>
-Column <Int>
-Page <ClientSidePagePipeBind>
[-WebPartProperties <PropertyBagPipeBind>]
[-Order <Int>]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Adds a client-side web part to an existing client-side page.
PS:> Add-PnPClientSideWebPart -Page "MyPage" -DefaultWebPartType BingMap
Adds a built-in Client-Side component 'BingMap' to the page called 'MyPage'
PS:> Add-PnPClientSideWebPart -Page "MyPage" -Component "HelloWorld"
Adds a Client-Side component 'HelloWorld' to the page called 'MyPage'
PS:> Add-PnPClientSideWebPart -Page "MyPage" -Component "HelloWorld" -Section 1 -Column 2
Adds a Client-Side component 'HelloWorld' to the page called 'MyPage' in section 1 and column 2
Sets the column where to insert the WebPart control.
Type: Int
Parameter Sets: Positioned with built-in webpart
Required: True
Position: Named
Accept pipeline input: False
Specifies the component instance or Id to add.
Type: ClientSideComponentPipeBind
Parameter Sets: Default with 3rd party webpart
Required: True
Position: Named
Accept pipeline input: False
Defines a default WebPart type to insert.
Type: DefaultClientSideWebParts
Parameter Sets: Default with built-in webpart
Required: True
Position: Named
Accept pipeline input: False
Sets the order of the WebPart control. (Default = 1)
Type: Int
Parameter Sets: Default with built-in webpart
Required: False
Position: Named
Accept pipeline input: False
The name of the page.
Type: ClientSidePagePipeBind
Parameter Sets: Default with built-in webpart
Required: True
Position: 0
Accept pipeline input: True
Sets the section where to insert the WebPart control.
Type: Int
Parameter Sets: Positioned with built-in webpart
Required: True
Position: Named
Accept pipeline input: False
The properties of the WebPart
Type: PropertyBagPipeBind
Parameter Sets: Default with built-in webpart
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.
Type: WebPipeBind
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False