Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/Set-PnPPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Accept wildcard characters: False
```

### -LayoutType
Sets the layout type of the page. (Default = Article)
Sets the layout type of the page.

```yaml
Type: PageLayoutType
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Pages/SetPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected override void ExecuteCmdlet()
throw new Exception("Insufficient arguments to update a client side page");

// Don't allow changing a topic page into a regular page as that could lead to data loss
if (clientSidePage.LayoutType != PageLayoutType.Topic)
if (ParameterSpecified(nameof(LayoutType)) && clientSidePage.LayoutType != PageLayoutType.Topic)
{
clientSidePage.LayoutType = LayoutType;
}
Expand Down