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
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,65 @@ using (var cc = am.GetSharePointOnlineAuthenticatedContextTenant(siteUrl, userNa
52
52
}
53
53
```
54
54
55
+
## FAQ
56
+
57
+
### I choose the "AddPageAcceptBanner" option but don't see the banner web part on the created pages
58
+
59
+
In order to make the banner webpart work there are 2 requirements that have to be met:
60
+
61
+
- The banner web part must have been installed in your tenant app catalog
62
+
- The banner web part must have been referenced in the used webpartmapping.xml file
63
+
64
+
#### Installing the banner web part
65
+
66
+
To install the default banner web part follow these steps:
67
+
68
+
- Open your tenant app catalog site collection and go to the **Apps for SharePoint** list
69
+
- Download the banner web part solution (**sharepointpnp-pagetransformation-client.sppkg**) from the [sp-dev-modernization](https://github.com/SharePoint/sp-dev-modernization/blob/master/Solutions/PageTransformationUI/assets/sharepointpnp-pagetransformation-client.sppkg?raw=true) repository
70
+
- Drag and drop the sppkg file in the **Apps for SharePoint** list. Doing so will ask to **make this solution available to all sites in your organization**. Check the box and click on **Deploy**.
71
+
72
+
> [!NOTE]
73
+
> The page banner web part is configured to **not** be visible in the web part picker...so even if you've deployed it to all sites in your tenant it will still not be visible for your users. It can only programmatically be added to a page
74
+
75
+
#### Checking your webpartmapping.xml file
76
+
77
+
When the page transformation engine puts the banner web part on a page it gets it's definition from the webpartmapping.xml file. Check if you find a web part of type **SharePointPnP.Modernization.PageAcceptanceBanner** in your mapping file. Below sample shows the default configuration using the default web part uploaded in the previous step.
> You can use your own custom banner web part by simply deploying it and then updating the mapping in the used webpartmapping.xml file.
95
+
96
+
### Modern site pages don't work on the site I want to transform pages in
97
+
98
+
By default the modern site page capability is enabled on most sites but maybe it was turned off afterwards. If that's the case the [SharePoint Modernization scanner](https://aka.ms/sppnp-modernizationscanner) will tell you which sites have turned of the modern page feature. To remediate this use below sample PnP PowerShell script:
Copy file name to clipboardExpand all lines: docs/transform/modernize-userinterface-site-pages-powershell.md
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,45 @@ TargetPageTakesSourcePageName | $false | The default behavior is to give the cre
37
37
38
38
## FAQ
39
39
40
+
### I choose the "AddPageAcceptBanner" option but don't see the banner web part on the created pages
41
+
42
+
In order to make the banner webpart work there are 2 requirements that have to be met:
43
+
44
+
- The banner web part must have been installed in your tenant app catalog
45
+
- The banner web part must have been referenced in the used webpartmapping.xml file
46
+
47
+
#### Installing the banner web part
48
+
49
+
To install the default banner web part follow these steps:
50
+
51
+
- Open your tenant app catalog site collection and go to the **Apps for SharePoint** list
52
+
- Download the banner web part solution (**sharepointpnp-pagetransformation-client.sppkg**) from the [sp-dev-modernization](https://github.com/SharePoint/sp-dev-modernization/blob/master/Solutions/PageTransformationUI/assets/sharepointpnp-pagetransformation-client.sppkg?raw=true) repository
53
+
- Drag and drop the sppkg file in the **Apps for SharePoint** list. Doing so will ask to **make this solution available to all sites in your organization**. Check the box and click on **Deploy**.
54
+
55
+
> [!NOTE]
56
+
> The page banner web part is configured to **not** be visible in the web part picker...so even if you've deployed it to all sites in your tenant it will still not be visible for your users. It can only programmatically be added to a page
57
+
58
+
#### Checking your webpartmapping.xml file
59
+
60
+
When the page transformation engine puts the banner web part on a page it gets it's definition from the webpartmapping.xml file. Check if you find a web part of type **SharePointPnP.Modernization.PageAcceptanceBanner** in your mapping file. Below sample shows the default configuration using the default web part uploaded in the previous step.
> You can use your own custom banner web part by simply deploying it and then updating the mapping in the used webpartmapping.xml file.
78
+
40
79
### Modern site pages don't work on the site I want to transform pages in
41
80
42
81
By default the modern site page capability is enabled on most sites but maybe it was turned off afterwards. If that's the case the [SharePoint Modernization scanner](https://aka.ms/sppnp-modernizationscanner) will tell you which sites have turned of the modern page feature. To remediate this use below sample PnP PowerShell script:
0 commit comments