Skip to content

Commit db45135

Browse files
committed
Updates for the September release
1 parent cf2325d commit db45135

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

docs/transform/modernize-userinterface-site-pages-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Transform classic pages to modern client-side pages using .NET
33
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
55
ms.prod: sharepoint
66
localization_priority: Normal
77
---
@@ -205,7 +205,7 @@ using (var cc = new ClientContext(siteUrl))
205205
```
206206

207207
> [!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
209209
> - 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
210210
> - 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
211211
> - This approach can also be used for page transformation across tenants (whenever that would make sense)

docs/transform/modernize-userinterface-site-pages-model-publishing.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Understanding and configuring the publishing page transformation model
33
description: Provides detailed guidance on how to configure and use the publishing page transformation model
4-
ms.date: 06/26/2019
4+
ms.date: 09/03/2019
55
ms.prod: sharepoint
66
localization_priority: Normal
77
---
@@ -82,7 +82,7 @@ Upcoming chapters will provide more details.
8282
Let's analyze how a page layout mapping is configured in the page layout mapping model, which is best done based upon a sample definition:
8383

8484
```Xml
85-
<PageLayout Name="MyPageLayout" AssociatedContentType="CustomPage1" PageLayoutTemplate="AutoDetect" PageHeader="Custom">
85+
<PageLayout Name="MyPageLayout" AlsoAppliesTo="MyOtherPageLayout;MyOtherPageLayout2" AssociatedContentType="CustomPage1" PageLayoutTemplate="AutoDetect" PageHeader="Custom">
8686
<Header Type="FullWidthImage" Alignment="Left" ShowPublishedDate="true">
8787
<Field Name="PublishingRollupImage;PublishingPageImage" HeaderProperty="ImageServerRelativeUrl" Functions="ToImageUrl({@name})" />
8888
<Field Name="ArticleByLine" HeaderProperty="TopicHeader" Functions=""/>
@@ -128,10 +128,14 @@ Let's analyze how a page layout mapping is configured in the page layout mapping
128128
The following properties are used on the PageLayout element:
129129

130130
- **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.
131132
- **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.
132133
- **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.
133134
- **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.
134135

136+
> [!Note]
137+
> - The **AlsoAppliesTo** attribute was introduced in the September 2019 release
138+
135139
### Header element
136140

137141
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
321325

322326
## Page layout mapping FAQ
323327

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)
325329

326330
You can do this by altering your page layout mapping like shown in below sample:
327331

328332
```XML
329333
<MetaData>
330334
...
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 -->
331336
<Field Name="Created" TargetFieldName="Created" Functions="" />
332337
<Field Name="Modified" TargetFieldName="Modified" Functions="" />
333338
<Field Name="Author" TargetFieldName="Author" Functions="" />
@@ -336,17 +341,18 @@ You can do this by altering your page layout mapping like shown in below sample:
336341
</MetaData>
337342
```
338343

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:
340345

341346
```XML
342347
<MetaData>
343348
...
344-
<Field Name="PublishingStartDate" TargetFieldName="FirstPublishedDate" Functions="" />
345-
<Field Name="ID" TargetFieldName="PromotedState" Functions="StaticString('2')" />
349+
<Field Name="Modified" TargetFieldName="FirstPublishedDate" Functions=""/>
346350
...
347351
</MetaData>
348352
```
349353

354+
In above sample the page modification date is taken as FirstPublishedDate, but you can also take other DateTime fields like ArticleStartDate.
355+
350356
### I want to promote the created pages as news
351357

352358
Promoting pages created from a page layout as news pages can be be done by adding the below fields to your page layout mapping:

0 commit comments

Comments
 (0)