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/spfx/web-parts/single-part-app-pages.md
+8-53Lines changed: 8 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,9 @@ App pages have following characteristics:
14
14
15
15
* Single Part App Pages cannot be edited by end users using a browser
16
16
* Currently supports hosting only single web part or Microsoft Teams application
17
-
* Page layout can only be changed programatically from normal page layout to a Single Page App Page
18
-
* End-users cannot parameterize exposed web part or Teams application
17
+
* End users can create new app pages using the New--> Page experience available in modern sites.
18
+
* Developers can change page layout programatically from normal page layout to a Single Page App Page
19
+
* There's no New experience in a Single Page App Page. End users can create new Article pages or Single Page App pages by using the New/page experience present in the ribbon of any modern article pages.
19
20
20
21
<br/>
21
22
@@ -59,58 +60,12 @@ Following web part manifest demonstrates scenario where the web part is included
59
60
}
60
61
```
61
62
62
-
## How to use the Single Part App page in your tenant?
63
+
## How to provision Single Part App page in your tenant
64
+
As a developer, the two most common way to provision Single Part App pages is o use PnP PowerShell or Office 365 ClI
63
65
64
-
You will need to perform following steps to enable Single Part App Page layout in your SharePoint site.
66
+
### Changing page layout using PnP PowerShell
65
67
66
-
1. Create a new page
67
-
1. Add a web part on the page and configure that as needed
68
-
1. Change the page layout type as `SingleWebPartAppPage`
69
-
70
-
If you need to further modify the page, you can change the page layout back as as `Article` to enable content editing.
71
-
72
-
## Changing page layout using JavaScript in browser console
73
-
74
-
You can change existing page to use Single Page App Page layout by using browser developer tools. You can simply enable the developer tools and execute following code to change an existing page to use a `SingleWebPartAppPage` layout.
75
-
76
-
You will need to adjust tenant and page name based on your environment.
77
-
78
-
```js
79
-
var siteUrl ='https://contoso.sharepoint.com/sites/marketing/';
You can also use [PnP PowerShell](https://docs.microsoft.com/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps) to update the page layout for the existing page with following script.
68
+
You can use [PnP PowerShell](https://docs.microsoft.com/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps) to update the page layout for the existing page with following script.
114
69
115
70
> [!NOTE]
116
71
> PnP PowerShell is an open-source tool with active community providing support for it. There is no SLA for the open-source tool support from Microsoft.
@@ -125,7 +80,7 @@ $item2.Update()
125
80
Invoke-PnPQuery
126
81
```
127
82
128
-
## Changing page layout using Office 365 CLI
83
+
###Changing page layout using Office 365 CLI
129
84
130
85
You can also use [Office 365 CLI](https://pnp.github.io/office365-cli/) to update the page layout for the existing page with following script.
0 commit comments