Skip to content

Commit 8264736

Browse files
committed
Udpating articles
1 parent d595039 commit 8264736

7 files changed

+13
-7
lines changed

docs/spfx/extensions/get-started/build-a-hello-world-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Build your first SharePoint SharePoint Extension (Hello World part 1)
2+
# Build your first SharePoint Framework Extension (Hello World part 1)
33

44
>**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.
55

docs/spfx/extensions/get-started/hosting-extension-from-office365-cdn.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ Open up a browser and move to a site collection where you'd like to host your CD
3737

3838
Create a new document library on your site collection called **CDN** and add a folder called **helloworld** to it.
3939

40-
![helloworld-extension folder in CDN library](../../../../images/cdn-helloworld-folder.png)
40+
![helloworld-extension folder in CDN library](../../../../images/ext-app-cdn-folder-created.png)
4141

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.
4343
```
44-
Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl sites/cdn/cdn
44+
Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl */cdn
4545
```
4646
Execute the following command to get the list of CDN origins from your tenant
4747
```
4848
Get-SPOTenantCdnOrigins -CdnType Public
4949
```
5050
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.
5151

52-
![List of public origins in tenant](../../../../images/cdn-public-origins.png)
52+
![List of public origins in tenant](../../../../images/ext-app-cdn-origins-pending.png)
5353

5454
> 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.
5555
@@ -66,7 +66,7 @@ Update the *write-manifests.json* file (under *config* folder) as follow to poin
6666
https://publiccdn.sharepointonline.com/<tenant host name>/sites/site/library/folder
6767
```
6868

69-
![Updated write manifest content with path to CDN endpoint](../../../../images/cdn-write-manifest-json.png)
69+
![Updated write manifest content with path to CDN endpoint](../../../../images/ext-app-cdn-write-manifest.png)
7070

7171
Save your changes.
7272

@@ -87,6 +87,9 @@ This command will create a **app-extension.sppkg** package on the **sharepoint/s
8787

8888
Upload or drag & drop the newly created client-side solution package to the app catalog in your tenant.
8989

90+
UPDUPAUPETPE
91+
![](../../../../images/ext-app-approve-cdn-address.png)
92+
9093
Install new version of the solution to your site and ensure that it's working properly.
9194

9295
![Custom header and footer elements rendered in the page](../../../../images/ext-app-header-footer-visible.png)

docs/spfx/extensions/get-started/serving-your-extension-from-sharepoint.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Create a new file inside the **sharepoint\assets** folder named as **elements.xm
4848

4949
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.
5050

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+
5153
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.
5254

5355
```xml
@@ -57,7 +59,8 @@ Notice also that we use specific ___location called `ClientSideExtension.Applicatio
5759
<CustomAction
5860
Title="SPFxApplicationCustomizer"
5961
Location="ClientSideExtension.ApplicationCustomizer"
60-
ClientSideComponentId="5fc73e12-8085-4a4b-8743-f6d02ffe1240">
62+
ClientSideComponentId="46606aa6-5dd8-4792-b017-1555ec0a43a4"
63+
ClientSideComponentProperties="{&quot;Header&quot;:&quot;Header area of the page&quot;,&quot;Footer&quot;:&quot;Footer area in the page&quot;}">
6164

6265
</CustomAction>
6366

31.3 KB
Loading

images/ext-app-cdn-folder-created.png

35.7 KB
Loading
15.8 KB
Loading

images/ext-app-cdn-write-manifest.png

14.8 KB
Loading

0 commit comments

Comments
 (0)