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/extensions/get-started/serving-your-extension-from-sharepoint.md
+29-19Lines changed: 29 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -65,18 +65,10 @@ The `ClientSideComponentProperties` property is set to the default structure and
65
65
66
66
The configuration uses the specific ___location of `ClientSideExtension.ApplicationCustomizer` to define that this is an Application Customizer. Because this **elements.xml** is associated to a `Web` scoped feature by default, this `CustomAction` is automatically added to the `Web.UserCustomAction` property in the site where the solution is being installed.
67
67
68
-
Ensure that the configuration matches updates executed in the Application Customizer. Update the `ClientSideComponentProperties` as in the following XML structure. Don't copy the whole structure because it would cause a mismatch with your `ClientSideComponentId`:
68
+
Ensure that the configuration matches the changes made to the properties of the Application Customizer. Set the `ClientSideComponentProperties` property to the following HTML encoded JSON string that contains the property values:
ClientSideComponentProperties="{"Top":"Top area of the page","Bottom":"Bottom area in the page"}">
78
-
</CustomAction>
79
-
</Elements>
71
+
{"Top":"Top area of the page","Bottom":"Bottom area in the page"}
80
72
```
81
73
82
74
### What about ClientSideInstance.xml file in assets folder?
@@ -85,7 +77,7 @@ Ensure that the configuration matches updates executed in the Application Custom
85
77
86
78
**Tenant-Wide Extensions** list can be used to automatically activate extensions in tenant from a centralized ___location. Tenant-wide deployment is supported for Application customizers and list view command sets. You can specify different target definitions, like activation based on the site type or list type.
87
79
88
-
For this tutorial, we don't need this file as we'll be activating solution in a specific site using feature xml based provisioning.
80
+
For this tutorial, we don't need this file as we'll be activating solution in a specific site using feature XML based provisioning.
89
81
90
82
> [!TIP]
91
83
> For more information, see: [Tenant-wide Deployment of SharePoint Framework Extensions](../basics/tenant-wide-deployment-extensions.md)
@@ -122,15 +114,34 @@ The **./config/package-solution.json** now looks similar to the following exampl
"title": "Application Extension - Deployment of custom action.",
142
+
"title": "Application Extension - Deployment of custom action",
132
143
"description": "Deploys a custom action with ClientSideComponentId association",
133
-
"id": "4678966b-de68-445f-a74e-e553a7b937ab",
144
+
"id": "41b490c7-49f7-4db4-b7ea-c632d0fb9785",
134
145
"version": "1.0.0.0",
135
146
"assets": {
136
147
"elementManifests": [
@@ -164,12 +175,11 @@ Now you're ready to deploy the solution to a SharePoint site and have the `Custo
164
175
165
176
This command creates the following package: **./sharepoint/solution/app-extension.sppkg**.
166
177
167
-
1. You now need to deploy the package to the app catalog. Go to your tenant's **app catalog** and open the **Apps for SharePoint** library.
168
-
1. Upload or drag and drop the **./sharepoint/solution/app-extension.sppkg** file to the app catalog. SharePoint displays a dialog and asks you to trust the client-side solution.
178
+
1. You now need to deploy the package to the app catalog. Go to your tenant's **app catalog** and upload or drag and drop the **./sharepoint/solution/app-extension.sppkg** file into the **Apps for SharePoint** list. SharePoint displays a panel that asks you to enable the client-side solution.
169
179
170
180
We did not update the URLs for hosting the solution for this deployment, so the URL is still pointing to **https://localhost:4321**.
171
181
172
-
1. Select the **Deploy** button.
182
+
1. Select the **Only enable this app** radio button and then select the **Enable app** button.
173
183
174
184

175
185
@@ -185,9 +195,9 @@ Now you're ready to deploy the solution to a SharePoint site and have the `Custo
185
195
186
196

187
197
188
-
1. Select the **app-extension-client-side-solution** app to install the solution on the site. When the installation is completed, refresh the page by selecting F5.
198
+
1. Select the **app-extension-client-side-solution** app to install the solution on the site. When the installation is completed, navigate back to the site where you installed the app.
189
199
190
-
When the application has been successfully installed, you can see the header and footer being rendered just like with the debug query parameters.
200
+
You can now see the header and footer being rendered just like with the debug query parameters.
191
201
192
202

0 commit comments