Skip to content

Commit 15e95d1

Browse files
committed
Changes for the upcoming March release
1 parent 8058373 commit 15e95d1

4 files changed

+97
-2
lines changed

docs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,8 @@
13991399
href: transform/modernize-userinterface-site-pages-usermapping.md
14001400
- name: URL mapping
14011401
href: transform/modernize-userinterface-site-pages-urlmapping.md
1402+
- name: Term mapping
1403+
href: transform/modernize-userinterface-site-pages-termmapping.md
14021404
- name: Page layout mapping
14031405
href: transform/modernize-userinterface-site-pages-layout.md
14041406
- name: SharePoint Modernization scanner

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

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Options to control the page transformation process
33
description: Explains how to configure the page transformation process
4-
ms.date: 01/03/2020
4+
ms.date: 03/06/2020
55
ms.prod: sharepoint
66
localization_priority: Normal
77
---
@@ -582,6 +582,50 @@ PublishingPageTransformationInformation pti = new PublishingPageTransformationIn
582582
};
583583
```
584584

585+
## TermMappingFile option (as of March 2020 release)
586+
587+
Type | Default value if not specified
588+
-----|----
589+
String | empty
590+
591+
You can optionally specify a file with custom term mappings. See the [Term mapping](modernize-userinterface-site-pages-termmapping.md) article to learn more.
592+
593+
```Csharp
594+
PageTransformationInformation pti = new PageTransformationInformation(page)
595+
{
596+
TermMappingFile = @"c:\temp\termmappingfile.csv",
597+
};
598+
```
599+
600+
```Csharp
601+
PublishingPageTransformationInformation pti = new PublishingPageTransformationInformation(page)
602+
{
603+
TermMappingFile = @"c:\temp\termmappingfile.csv",
604+
};
605+
```
606+
607+
## SkipTermStoreMapping option (as of March 2020 release)
608+
609+
Type | Default value if not specified
610+
-----|----
611+
Bool | false
612+
613+
The standard behavior is to perform default term mapping. In case you don't want any term mapping to happen then set this property. See the [Term mapping](modernize-userinterface-site-pages-termmapping.md) article to learn more.
614+
615+
```Csharp
616+
PageTransformationInformation pti = new PageTransformationInformation(page)
617+
{
618+
SkipTermStoreMapping = true,
619+
};
620+
```
621+
622+
```Csharp
623+
PublishingPageTransformationInformation pti = new PublishingPageTransformationInformation(page)
624+
{
625+
SkipTermStoreMapping = true,
626+
};
627+
```
628+
585629
## HandleWikiImagesAndVideos option
586630

587631
Type | Default value if not specified

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Transform classic pages to modern pages using PowerShell
33
description: Explains how to transform classic wiki and web part pages into modern pages using the SharePoint PowerShell
4-
ms.date: 01/16/2020
4+
ms.date: 03/06/2020
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -64,6 +64,8 @@ LDAPConnectionString (as of November 2019 release, version 3.15.1911.*) | | All
6464
SkipUserMapping (as of November 2019 release, version 3.15.1911.*) | $false | All page types | Skips the user mapping. For SPO transformations user mapping is off unless you specify a mapping file, for on-premises SharePoint user mapping is always on unless you set this flag. See the [User mapping](modernize-userinterface-site-pages-usermapping.md) article to learn more.
6565
DelveBlogPage (as of December 2019 release, version 3.16.1912.*) | $false | Delve blog pages | Set the `-DelveBlogPage` parameter if you're transforming a Delve blog page. For wiki,web part, classic blog and publishing pages this parameter must be omitted or set to false.
6666
DelveKeepSubtitle (as of December 2019 release, version 3.16.1912.*) | $false | Delve blog pages | When the `-DelveKeepSubtitle` parameter is set then the sub title of a Delve blog page will be used for the modern page topic header. This value will be truncated at 40 characters.
67+
TermMappingFile (as of March 2020 release, version 3.19.2003.*) | | Cross site transformation | File with custom term mapping definitions allow you to do more than just the default term mapping. See the [Term mapping](modernize-userinterface-site-pages-termmapping.md) article to learn more.
68+
SkipTermStoreMapping (as of March 2020 release, version 3.19.2003.*) | $false | Cross site transformation | During page transformation terms are mapped to be valid in the target site collection, but using the `-SkipTermStoreMapping` parameter you can disable the term mapping. See the [Term mapping](modernize-userinterface-site-pages-termmapping.md) article to learn more.
6769

6870
(`*`) Mandatory command line parameter / (`**`) Mandatory when the `-PublishingPage`, `-BlogPage` or `-DelveBlogPage` parameter was set (either `-TargetWebUrl` or `-TargetConnection`)
6971

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Term mapping during cross site page transformation
3+
description: Explains how to the default term mapping works when transforming pages + also explains how to use a custom term mapping file
4+
ms.date: 03/06/2020
5+
ms.prod: sharepoint
6+
localization_priority: Priority
7+
---
8+
9+
# Term mapping during page transformation
10+
11+
Term mapping is the mechanism that translates managed metadata terms in the source environment to an applicable term in the target environment. The cases in where term mapping applies are:
12+
13+
- You're transforming from on-premises SharePoint to SharePoint Online
14+
- You're doing a cross site transformation (e.g. from classic publishing portal to a modern intranet) in SharePoint Online
15+
16+
Term mapping will not be used when:
17+
18+
- The source and target are pointing to the same termset id
19+
- When you're doing an in-place transformation (source and target page live in the same site)
20+
21+
## How does term mapping work
22+
23+
Term mapping will automatically try to find the equivalent term in SharePoint Online for the term used in the source page and it can do this in two manners:
24+
25+
- Automatic mapping: term mapping will try to find an equivalent term by checking if the same term group, termset and term path can be found in the target term store
26+
- Custom mapping based upon a file: using a mapping file you can specify a target term for a given source term
27+
28+
## Turning off the automatic mapping
29+
30+
If you don't want term mapping to happen you can disable it via the `-SkipTermStoreMapping` flag in PnP PowerShell or via the `SkipTermStoreMapping` attribute of the .Net page transformation configuration objects (`PageTransformationInformation` and `PublishingPageTransformationInformation`).
31+
32+
## Custom term mapping
33+
34+
If you don't like or cannot use the automatic term mapping then there's the option to specify a term mapping file. A term mapping file is a simple CSV file listing source term and target term as shown in below snippet
35+
36+
```Text
37+
SourceTermGroup|SourceTermSet|SourceTerm,TargetTermGroup|TargetTermSet|TargetTerm
38+
SourceTermGroup|SourceTermSet|SourceTerm|SourceChildTerm1|SourceChildTerm2,TargetTermGroup|TargetTermSet|TargetTerm|TargetChildTerm1|TargetChildTerm2
39+
f0b1b6aa-b00b-4198-b8dd-ef4393e3ad05,fec05391-6a39-4ad5-a2a1-a01020d94efd
40+
```
41+
42+
Some things to note:
43+
44+
- You can either choose a mapping based upon a path (a | delimited string of term labels) or choose to define the mapping based upon source and target term id's
45+
- If you're transforming from SharePoint 2010 then you'll need to specify **DEFAULT** as source term group name
46+
47+
Creating the mapping file is the first step, to actually use it you need to specify the file via the `TermMappingFile` parameter to the `ConvertTo-PnPClientSidePage` cmdlet if you're using PnP PowerShell. If you're using .Net then you can specify the file via the `TermMappingFile` attribute of the .Net page transformation configuration objects (`PageTransformationInformation` and `PublishingPageTransformationInformation`).

0 commit comments

Comments
 (0)