Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Added RemoveEmptySectionsAndColumns option with default true (accorin… #2539

Closed
Closed
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
6 changes: 6 additions & 0 deletions Commands/ClientSidePages/ConvertToClientSidePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ public class ConvertToClientSidePage : PnPWebCmdlet
[Parameter(Mandatory = false, HelpMessage = "When setting a target page folder then the target page folder overrides possibly default folder path (e.g. in the source page lived in a folder) instead of being appended to it")]
public SwitchParameter TargetPageFolderOverridesDefaultFolder = false;

[Parameter(Mandatory = false, HelpMessage = "Remove empty sections and columns after transformation of the page")]
public SwitchParameter RemoveEmptySectionsAndColumns = true;

[Parameter(Mandatory = false, HelpMessage = "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.")] // do not remove '#!#99'
public SPOnlineConnection TargetConnection = null;

Expand Down Expand Up @@ -443,6 +446,7 @@ protected override void ExecuteCmdlet()
LDAPConnectionString = this.LDAPConnectionString,
TargetPageFolder = this.TargetPageFolder,
TargetPageFolderOverridesDefaultFolder = this.TargetPageFolderOverridesDefaultFolder,
RemoveEmptySectionsAndColumns = this.RemoveEmptySectionsAndColumns,
};

// Set mapping properties
Expand Down Expand Up @@ -484,6 +488,7 @@ protected override void ExecuteCmdlet()
LDAPConnectionString = this.LDAPConnectionString,
TargetPageFolder = this.TargetPageFolder,
TargetPageFolderOverridesDefaultFolder = this.TargetPageFolderOverridesDefaultFolder,
RemoveEmptySectionsAndColumns = this.RemoveEmptySectionsAndColumns
};

// Set mapping properties
Expand Down Expand Up @@ -543,6 +548,7 @@ protected override void ExecuteCmdlet()
{
AddPageAcceptBanner = this.AddPageAcceptBanner
},
RemoveEmptySectionsAndColumns = this.RemoveEmptySectionsAndColumns,
};

// Set mapping properties
Expand Down