Add-PnPClientSideText

Adds a text element to a client-side page.

Syntax

Add-PnPClientSideText
   -Page <ClientSidePagePipeBind>
                        -Text <String>
                        [-Order <Int>]
                        [-Web <WebPipeBind>]
                        [-Connection <SPOnlineConnection>]
Add-PnPClientSideText
   -Page <ClientSidePagePipeBind>
                        -Text <String>
                        -Section <Int>
                        -Column <Int>
                        [-Order <Int>]
                        [-Web <WebPipeBind>]
                        [-Connection <SPOnlineConnection>]

Description

Adds a new text element to a section on a client-side page.

Examples

------------------EXAMPLE 1------------------

Add-PnPClientSideText -Page "MyPage" -Text "Hello World!"

Adds the text 'Hello World!' to the Client-Side Page 'MyPage'

Required Parameters

-Column

Sets the column where to insert the text control.

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Page

The name of the page.

Type:ClientSidePagePipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Section

Sets the section where to insert the text control.

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Text

Specifies the text to display in the text area.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Order

Sets the order of the text control. (Default = 1)

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

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
Position:Named
Accept pipeline input:False
Accept wildcard characters:False