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-api.md
+58-1Lines changed: 58 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Page Transformation Functions and Selectors
3
3
description: Page Transformation Functions and Selectors
4
-
ms.date: 03/06/2019
4
+
ms.date: 04/04/2019
5
5
ms.prod: sharepoint
6
6
localization_priority: Normal
7
7
---
@@ -334,6 +334,20 @@ Name|Description
334
334
Name|Description
335
335
:-----|:----------
336
336
{FileContents}|Text content of the file. Return empty string if file was not found
337
+
### UserDocumentsToHighlightedContentProperties
338
+
339
+
**Description:** Maps the user documents web part data into a properties collection and supporting serverProcessedContent nodes for the content rollup (= Highlighted Content) web part
{JsonProperties}|Properties collection for the contentrollup (= Highlighted Content) web part
348
+
{SearchablePlainTexts}|SearchablePlainTexts nodes to be added in the serverProcessedContent node
349
+
{Links}|Links nodes to be added in the serverProcessedContent node
350
+
{ImageSources}|ImageSources nodes to be added in the serverProcessedContent node
337
351
### ContentBySearchToHighlightedContentProperties
338
352
339
353
**Description:** Maps content by search web part data into a properties collection and supporting serverProcessedContent nodes for the content rollup (= Highlighted Content) web part
@@ -454,6 +468,49 @@ Name|Description
454
468
{PersonDepartment}|User's department
455
469
{PersonPhone}|Phone number of the user
456
470
{PersonSip}|SIP address of the user
471
+
### EmptyString
472
+
473
+
**Description:** Returns an empty string
474
+
475
+
**Example:**`EmptyString()`
476
+
477
+
#### Output parameters
478
+
479
+
Name|Description
480
+
:-----|:----------
481
+
{return value}|Empty string
482
+
### ToImageUrl
483
+
484
+
**Description:** Returns the server relative image url of a Publishing Image field value.
485
+
486
+
**Example:**`ToImageUrl({PublishingPageImage})`
487
+
488
+
#### Input parameters
489
+
490
+
Name|Description
491
+
:-----|:----------
492
+
{PublishingPageImage}|Publishing Image field value
493
+
#### Output parameters
494
+
495
+
Name|Description
496
+
:-----|:----------
497
+
{return value}|Server relative image url
498
+
### ToImageAltText
499
+
500
+
**Description:** Returns the image alternate text of a Publishing Image field value.
Copy file name to clipboardExpand all lines: docs/transform/modernize-userinterface-site-pages-configuration.md
+121-2Lines changed: 121 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Options to control the page transformation process
3
3
description: Explains how to configure the page transformation process
4
-
ms.date: 03/06/2019
4
+
ms.date: 04/04/2019
5
5
ms.prod: sharepoint
6
6
localization_priority: Normal
7
7
---
8
8
9
9
# Page transformation configuration options
10
10
11
-
When you use the page transformation framework you do have a lot of control on how the page transformation is done. The model to control this is by specifying the correct configuration as part of the `PageTransformationInformation` instance that you use to launch page transformation. In this article you'll learn more about the available options.
11
+
When you use the page transformation framework you do have a lot of control on how the page transformation is done. The model to control this is by specifying the correct configuration as part of the `PageTransformationInformation` instance for wiki and web part pages or a `PublishingPageTransformationInformation` instance for publishing pages. The created transformation instance is what you use to launch page transformation. In this article you'll learn more about the available options.
12
12
13
13
> [!IMPORTANT]
14
14
> The SharePoint PnP Modernization framework is continuously evolving, checkout [the release notes](https://github.com/SharePoint/sp-dev-modernization/tree/master/Tools/SharePoint.Modernization/Modernization%20Framework%20release%20notes.md) to stay up to date on the latest changes. If you encounter problems please file an issue in the [sp-dev-modernization GitHub issue list](https://github.com/SharePoint/sp-dev-modernization/issues).
@@ -28,6 +28,13 @@ PageTransformationInformation pti = new PageTransformationInformation(page)
## CopyPageMetadata option (as of February 2019 release)
129
159
130
160
Type | Default value if not specified
@@ -140,6 +170,9 @@ PageTransformationInformation pti = new PageTransformationInformation(page)
140
170
};
141
171
```
142
172
173
+
> [!NOTE]
174
+
> This option is not available for publishing page transformation. Use the publishing page layout mapping model to define if metadata needs to be copied and how that needs to happen.
175
+
143
176
## RemoveEmptySectionsAndColumns option (as of March 2019 release)
144
177
145
178
Type | Default value if not specified
@@ -155,6 +188,13 @@ PageTransformationInformation pti = new PageTransformationInformation(page)
@@ -205,6 +308,9 @@ PageTransformationInformation pti = new PageTransformationInformation(page)
205
308
};
206
309
```
207
310
311
+
> [!NOTE]
312
+
> This option is not available for publishing page transformation. Use the page layout mapping model to determine how the page header must be constructed.
313
+
208
314
## PageTitleOverride option
209
315
210
316
Type | Default value if not specified
@@ -226,6 +332,19 @@ PageTransformationInformation pti = new PageTransformationInformation(page)
Copy file name to clipboardExpand all lines: docs/transform/modernize-userinterface-site-pages-dotnet.md
+41-1Lines changed: 41 additions & 1 deletion
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: 03/06/2019
4
+
ms.date: 04/04/2019
5
5
ms.prod: sharepoint
6
6
localization_priority: Normal
7
7
---
@@ -113,6 +113,46 @@ using (var cc = am.GetSharePointOnlineAuthenticatedContextTenant(siteUrl, userNa
113
113
> [!Note]
114
114
> Not all web parts lend themselves well for a cross site transfer, check the **Cross site support** column in [web part transformation list](modernize-userinterface-site-pages-webparts.md) to learn more.
115
115
116
+
### I want to transform publishing pages (as of April 2019 release, version 1.0.1904.*)
117
+
118
+
Publishing page transformation always will be a cross site transformation as mixing modern client side pages with publishing pages is unsupported. Below sample shows how all publishing pages starting with an "a" are transformed to client side pages in the https://contoso.sharepoint.com/sites/mycommunicationsite site. This sample also shows how to provide a custom page layout mapping file.
Console.WriteLine($"Page {page.FieldValues["FileLeafRef"]} could not be transformed: {ex.Message}");
147
+
}
148
+
}
149
+
}
150
+
}
151
+
```
152
+
153
+
> [!Note]
154
+
> Not all web parts lend themselves well for a cross site transfer, check the **Cross site support** column in [web part transformation list](modernize-userinterface-site-pages-webparts.md) to learn more.
155
+
116
156
### I choose the "AddPageAcceptBanner" option but don't see the banner web part on the created pages
117
157
118
158
In order to make the banner webpart work there are 2 requirements that have to be met:
As publishing pages do not have a fixed layout the default layout manager used by the publishing page transformator does work differently: it generates the needed rows and columns based upon the position of the web parts as defined in the used page layout mapping file. This layout behavior is defined in the mapping file using the `PageLayoutTemplate` attribute, which defaults to `AutoDetect`. If for some reason you don't like the automatic layout generation you can also use the earlier described wiki page layout types.
If for some reason you want to transform layouts differently then you can plug in your own layout transformation component as is shown in below snippet:
0 commit comments