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/build-a-hello-world-extension.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
# Build your first SharePoint SharePoint Extension (Hello World part 1)
2
+
# Build your first SharePoint Framework Extension (Hello World part 1)
3
3
4
4
>**Note:** The SharePoint Framework Extensions are currently in preview and is subject to change. SharePoint Framework Extensions are not currently supported for use in production environments.
Copy file name to clipboardExpand all lines: docs/spfx/extensions/get-started/hosting-extension-from-office365-cdn.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -37,19 +37,19 @@ Open up a browser and move to a site collection where you'd like to host your CD
37
37
38
38
Create a new document library on your site collection called **CDN** and add a folder called **helloworld** to it.
39
39
40
-

40
+

41
41
42
-
Move back to your PowerShell console and add a new CDN origin. Update the provided URL below to match your own environment.
42
+
Move back to your PowerShell console and add a new CDN origin. Update the provided URL below to match your own environment. In this case we are setting origin as `*/cdn`, which means that any relative folder with name of **cdn** will act as CDN origin.
43
43
```
44
-
Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl sites/cdn/cdn
44
+
Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl */cdn
45
45
```
46
46
Execute the following command to get the list of CDN origins from your tenant
47
47
```
48
48
Get-SPOTenantCdnOrigins -CdnType Public
49
49
```
50
50
Notice that your newly added origin is listed as a valid CDN origin. Final configuration of the origin will take a while (approximately 15 minutes), so we can continue by creating your test extension, which will be hosted from the origin, when the deployment is completed.
51
51
52
-

52
+

53
53
54
54
> When origin is listed without the *(configuration pending)* text, it is ready to be used in your tenant. This is the indication of an on-going configuration between SharePoint Online and CDN system.
55
55
@@ -66,7 +66,7 @@ Update the *write-manifests.json* file (under *config* folder) as follow to poin
Copy file name to clipboardExpand all lines: docs/spfx/extensions/get-started/serving-your-extension-from-sharepoint.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@ Create a new file inside the **sharepoint\assets** folder named as **elements.xm
48
48
49
49
Copy the following xml structure into **elements.xml**. Updated the **ClientSideComponentId** property to have the unique Id of your Application Customizer available from the **HelloWorldApplicationCustomizer.manifest.json** file at **src\extensions\helloWorld** folder.
50
50
51
+
We also set the **ClientSideComponentProperties** using this xml definition and bypass JSON properties for this extension instance. Notice how the JSON is escaped, so that we can set that properly using XML attribute.
52
+
51
53
Notice also that we use specific ___location called `ClientSideExtension.ApplicationCustomizer` to define that this is Application Customizer. Since by default this **element.xml** will be associated to *Web* scoped feature, this CustomAction will be automatically added to `Web.UserCustomAction` collection in the site where the solution is being installed.
52
54
53
55
```xml
@@ -57,7 +59,8 @@ Notice also that we use specific ___location called `ClientSideExtension.Applicatio
0 commit comments