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
Copy file name to clipboardExpand all lines: docs/transform/modernize-userinterface-site-pages-dotnet.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Transform classic pages to modern client-side pages using .NET
3
3
description: Explains how to transform classic wiki and web part pages into modern client side pages using the SharePoint .NET
4
-
ms.date: 06/24/2019
4
+
ms.date: 09/03/2019
5
5
ms.prod: sharepoint
6
6
localization_priority: Normal
7
7
---
@@ -205,7 +205,7 @@ using (var cc = new ClientContext(siteUrl))
205
205
```
206
206
207
207
> [!NOTE]
208
-
> - This feature is still in preview in the June 2019 release...it should support SharePoint 2013, 2016 and 2019
208
+
> - This feature supports SharePoint 2010, 2013, 2016 and 2019 as source. Target is always SharePoint Online
209
209
> - It's important to run your code on a machine that is able to connect to both the on-premises SharePoint server as the SharePoint Online environment
210
210
> - There (currently) is no user mapping feature, hence item level permissions are not copied over from the on-premises publishing page to the SharePoint Online modern page
211
211
> - This approach can also be used for page transformation across tenants (whenever that would make sense)
@@ -128,10 +128,14 @@ Let's analyze how a page layout mapping is configured in the page layout mapping
128
128
The following properties are used on the PageLayout element:
129
129
130
130
-**Name**: contains the name of your page layout.
131
+
-**AlsoAppliesTo**: when this mapping will be used for multiple page layouts then you can specify the names of those additional page layouts as a semi colon delimited list in this attribute. The **Name** property will be name of the first page layout, the **AlsoAppliesTo** just contains the additional ones.
131
132
-**AssociatedContentType**: the name of the modern site page content type you want use. Leave this blank if you want to use the default site page content type.
132
133
-**PageLayoutTemplate**: the layout system to use...defaults to `AutoDetect` which should work fine in all cases, but optionally you can pick a specific wiki layout as well.
133
134
-**PageHeader**: controls the type of page header that will be used. Defaults to `Custom` as that allows for a nice header, but you can switch it to `None` for no header or `Default` for the default modern page header.
134
135
136
+
> [!Note]
137
+
> - The **AlsoAppliesTo** attribute was introduced in the September 2019 release
138
+
135
139
### Header element
136
140
137
141
The following properties are used on the Header element:
@@ -321,13 +325,14 @@ Now that the assembly has been defined you can use your functions and selectors
321
325
322
326
## Page layout mapping FAQ
323
327
324
-
### I want to keep the source page creation and modification information
328
+
### I want to keep the source page creation information (as of September 2019 release)
325
329
326
330
You can do this by altering your page layout mapping like shown in below sample:
327
331
328
332
```XML
329
333
<MetaData>
330
334
...
335
+
<!-- Use below 4 fields to retain user created/date created, user modified/date modified will be overwritten afterwards, but you need to include them to make this "override" work -->
@@ -336,17 +341,18 @@ You can do this by altering your page layout mapping like shown in below sample:
336
341
</MetaData>
337
342
```
338
343
339
-
If you however publish this page the modification data will change again. If you want to keep the modification date and publish you can add these 2 additional fields:
344
+
On publishing this page the modification data will change again. If you want to keep the modification date shown correctly in the modern page header you should set this field as well:
0 commit comments