You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
10
10
### Added
11
11
12
12
- Added Sync-PnPAppToTeams to synchronize an app from the tenant app catalog to the Microsoft Teams App Catalog
13
+
- Added Export-PnPClientSidePageMapping to export the mapping files needed during publishing page transformation
13
14
14
15
### Changed
15
16
@@ -21,6 +22,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
21
22
- Added -ContentType parameter to Add-PnPClientSidePage and Set-PnPClientSidePage
22
23
- ConvertTo-PnPClientSidePage: added -Library and -Folder parameters to support modernization of pages living outside of the SitePages folder
23
24
- ConvertTo-PnPClientSidePage: added -LogType, -LogFolder, -LogSkipFlush and -LogVerbose parameters to support log generation to an md file or SharePoint page
25
+
- ConvertTo-PnPClientSidePage: added -DontPublish and -DisablePageComments parameters to control the page publishing and commenting
26
+
- ConvertTo-PnPClientSidePage: added -PublishingPage and -PageLayoutMapping to support publishing page transformation
Remarks="Converts a web part page named 'somepage' and creates a log file in SharePoint but skip the actual write. Use this option to make multiple ConvertTo-PnPClientSidePage invocations create a single log",
53
-
SortOrder=8)]
58
+
SortOrder=9)]
54
59
publicclassConvertToClientSidePage:PnPWebCmdlet
55
60
{
56
61
privateAssemblymodernizationAssembly;
@@ -66,7 +71,7 @@ public class ConvertToClientSidePage : PnPWebCmdlet
66
71
[Parameter(Mandatory=false,ValueFromPipeline=true,Position=0,HelpMessage="The folder to load the provided page from. If not provided all folders are searched")]
67
72
publicstringFolder;
68
73
69
-
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,ValueFromPipeline=true,HelpMessage="Path and name of the web part mapping file driving the transformation",ParameterSetName="WebPartMappingFile")]
74
+
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,ValueFromPipeline=true,HelpMessage="Path and name of the web part mapping file driving the transformation")]
70
75
publicstringWebPartMappingFile;
71
76
72
77
[Parameter(Mandatory=false,HelpMessage="Overwrites page if already existing")]
@@ -111,21 +116,50 @@ public class ConvertToClientSidePage : PnPWebCmdlet
111
116
[Parameter(Mandatory=false,HelpMessage="Configure logging to include verbose log entries")]
112
117
publicSwitchParameterLogVerbose=false;
113
118
119
+
[Parameter(Mandatory=false,HelpMessage="Don't publish the created modern page")]
120
+
publicSwitchParameterDontPublish=false;
121
+
122
+
[Parameter(Mandatory=false,HelpMessage="Disable comments for the created modern page")]
123
+
publicSwitchParameterDisablePageComments=false;
124
+
125
+
[Parameter(Mandatory=false,HelpMessage="I'm transforming a publishing page")]
126
+
publicSwitchParameterPublishingPage=false;
127
+
128
+
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,ValueFromPipeline=true,HelpMessage="Path and name of the page layout mapping file driving the publishing page transformation")]
thrownewException($"Publishing page transformation is only supported when transformating into another site collection. Use the -TargetWebUrl to specify a modern target site.");
this.WriteVerbose("Using embedded webpartmapping file. Use Export-PnPClientSidePageMapping to get that file in case you want to base your version of the embedded version.");
0 commit comments