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-model.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Let's analyze how a web part is configured in the page transformation model, whi
58
58
59
59
For each web part the model defines the properties that might be useful to configure the target client side web part(s). If you miss certain properties you can simply extend them in the model. On some of the properties you'll see a Functions attribute: this attribute contains one or more functions (separate functions via a ;) that are executed when the source web part is mapped to a target client side web part. The anatomy of a function is the following:
60
60
61
-
```C#
61
+
```csharp
62
62
{Output} =FunctionName({Input1}, {Input2})
63
63
```
64
64
@@ -124,7 +124,7 @@ Add-ons allow you to insert your custom logic into the mapping model by followin
124
124
125
125
Tocreateyourownfunctionsyou'll need to reference the SharePoint.Modernization.Framework assembly in your project and then create a class inheriting the `SharePoint.Modernization.Framework.Functions.FunctionsBase` class:
Copy file name to clipboardExpand all lines: docs/transform/modernize-userinterface-site-pages.md
+2-11Lines changed: 2 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The `webpartmapping.xml` and `webpartmapping_latestfrompackage.xml` represent th
35
35
36
36
With the mapping file in place you now can use below snippet (coming from the [Modernization.PageTransformation sample on GitHub](https://github.com/SharePoint/PnP/tree/dev/Samples/Modernization.PageTransformation)) to transform all the pages in a given site:
@@ -49,17 +49,8 @@ using (var cc = am.GetSharePointOnlineAuthenticatedContextTenant(siteUrl, userNa
49
49
{
50
50
// If target page exists, then overwrite it
51
51
Overwrite=true,
52
-
// Migrated page gets the name of the original page (default = false)
53
-
//TargetPageTakesSourcePageName = false,
54
-
// Give the migrated page a specific prefix (default is Migrated_)
55
-
//TargetPagePrefix = "Yes_",
56
-
// Configure the page header, empty value means ClientSidePageHeaderType.None (default = null)
57
-
//PageHeader = new ClientSidePageHeader(cc, ClientSidePageHeaderType.None, null),
58
-
// If the page is a home page then replace with stock home page (default = false)
59
-
//ReplaceHomePageWithDefaultHomePage = true,
60
-
// Replace images and iframes embedded inside a list or table in the wiki text with a placeholder and add respective images and video web parts at the bottom of the page (default = true)
0 commit comments