Skip to content

Commit d7901a5

Browse files
Merge branch 'master' into patch-3
2 parents 0735b05 + ed96f39 commit d7901a5

7 files changed

+104
-80
lines changed

docs/declarative-customization/column-formatting.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use column formatting to customize SharePoint
33
description: Customize how fields in SharePoint lists and libraries are displayed by constructing a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements.
4-
ms.date: 06/29/2021
4+
ms.date: 09/28/2021
55
ms.localizationpriority: high
66
---
77

@@ -1667,9 +1667,6 @@ The ___location field object has the following properties (with example values):
16671667
}
16681668
```
16691669

1670-
> [!NOTE]
1671-
> Location fields do not currently have a "Format this column" option in the list view and formats applied directly to these fields will need to be done through field settings.
1672-
16731670
<br/>
16741671

16751672
The following example shows how a ___location field might be used on a current field.
Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,66 @@
1-
---
2-
title: Customize default site templates in SharePoint
3-
description: Customize the default site templates for the SharePoint Team site or Communication site template.
4-
ms.date: 09/28/2021
5-
ms.localizationpriority: high
6-
---
7-
8-
# Customize a default site template
9-
10-
SharePoint offers several [site templates that are already available](https://support.microsoft.com/office/apply-and-customize-sharepoint-site-templates-39382463-0e45-4d1b-be27-0e96aeec8398). These are the default site templates and they can be modified by using PowerShell or the REST APIs to control the entire site provisioning experience. For example, you can ensure that your company theme is applied to every site that gets created, or you can make sure a logging mechanism always runs regardless of which site template is chosen.
11-
12-
## Apply a site script to a default site template
13-
14-
To customize a default site template, apply a new template script using PowerShell **Add-SPOSiteDesign** cmdlet or the **CreateSiteDesign** REST API. Specify the **IsDefault** switch to apply the site template as the default template.
15-
16-
| Parameter | Value | Site template type |
17-
| :------------------- | :------------------- |:----------------|
18-
| WebTemplate | 64 | Team site template |
19-
| WebTemplate | 1 | Team site (with group creation disabled) |
20-
| WebTemplate | 68 | Communication site template |
21-
22-
23-
The following example shows how to use the **IsDefault** switch to apply the Contoso company theme to the default site templates. The site script referenced by ID contains the JSON script to apply the correct theme.
24-
25-
```powershell
26-
C:\> Add-SPOSiteDesign `
27-
-Title "Contoso company theme" `
28-
-WebTemplate "68" `
29-
-SiteScripts "89516c6d-9f4d-4a57-ae79-36b0c95a817b" `
30-
-Description "Applies standard company theme to site" `
31-
-IsDefault
32-
```
33-
34-
<br/>
35-
36-
```javascript
37-
RestRequest("/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteDesign", {info:{Title:"Contoso company theme", Description:"Applies standard company theme to site", SiteScriptIds:["89516c6d-9f4d-4a57-ae79-36b0c95a817b"], WebTemplate:"68", IsDefault: true}});
38-
```
39-
40-
### Which default site templates are updated?
41-
42-
The default site template for a communication site is the **Topic** template. The default for a team site is the **Team collaboration** template. When you apply a new default site template, it updates the Microsoft-provided default templates.
43-
44-
45-
## Restore the default site templates
46-
47-
To restore a site template to the defaults, remove the site template script that you applied. In the previous example, if the site template created had the ID `db752673-18fd-44db-865a-aa3e0b28698e`, you would remove it as shown in the following example.
48-
49-
```powershell
50-
C:\> Remove-SPOSiteDesign db752673-18fd-44db-865a-aa3e0b28698e
51-
```
52-
53-
<br/>
54-
55-
```javascript
56-
RestRequest("/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.DeleteSiteDesign", {id:"db752673-18fd-44db-865a-aa3e0b28698e"});
57-
```
58-
59-
> [!NOTE]
60-
> If you're not sure which site template is the default, run the **Get-SPOSiteDesign** cmdlet. It will list all site templates, and indicates which ones are defaults.
61-
62-
## See also
63-
64-
- [SharePoint site template and site script overview](site-design-overview.md)
65-
- [Browse and customize Microsoft-provided site templates](https://support.microsoft.com/office/apply-and-customize-sharepoint-site-templates-39382463-0e45-4d1b-be27-0e96aeec8398)
1+
---
2+
title: Customize default site templates in SharePoint
3+
description: Customize the default site templates for the SharePoint Team site or Communication site template.
4+
ms.date: 09/28/2021
5+
ms.localizationpriority: high
6+
---
7+
8+
# Customize a default site template
9+
10+
SharePoint offers several [site templates that are already available](https://support.microsoft.com/office/apply-and-customize-sharepoint-site-templates-39382463-0e45-4d1b-be27-0e96aeec8398). These are the default site templates and they can be modified by using PowerShell or the REST APIs to control the entire site provisioning experience. For example, you can ensure that your company theme is applied to every site that gets created, or you can make sure a logging mechanism always runs regardless of which site template is chosen.
11+
12+
## Apply a site script to a default site template
13+
14+
To customize a default site template, apply a new template script using PowerShell **Add-SPOSiteDesign** cmdlet or the **CreateSiteDesign** REST API. Specify the **IsDefault** switch to apply the site template as the default template.
15+
16+
| Parameter | Value | Site template type |
17+
| :------------------- | :------------------- |:----------------|
18+
| WebTemplate | 64 | Team site template |
19+
| WebTemplate | 1 | Team site (with group creation disabled) |
20+
| WebTemplate | 68 | Communication site template |
21+
| WebTemplate | 69 | Channel site template |
22+
23+
24+
The following example shows how to use the **IsDefault** switch to apply the Contoso company theme to the default site templates. The site script referenced by ID contains the JSON script to apply the correct theme.
25+
26+
```powershell
27+
C:\> Add-SPOSiteDesign `
28+
-Title "Contoso company theme" `
29+
-WebTemplate "68" `
30+
-SiteScripts "89516c6d-9f4d-4a57-ae79-36b0c95a817b" `
31+
-Description "Applies standard company theme to site" `
32+
-IsDefault
33+
```
34+
35+
<br/>
36+
37+
```javascript
38+
RestRequest("/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteDesign", {info:{Title:"Contoso company theme", Description:"Applies standard company theme to site", SiteScriptIds:["89516c6d-9f4d-4a57-ae79-36b0c95a817b"], WebTemplate:"68", IsDefault: true}});
39+
```
40+
41+
### Which default site templates are updated?
42+
43+
The default site template for a communication site is the **Topic** template. The default for a team site is the **Team collaboration** template. When you apply a new default site template, it updates the Microsoft-provided default templates.
44+
45+
46+
## Restore the default site templates
47+
48+
To restore a site template to the defaults, remove the site template script that you applied. In the previous example, if the site template created had the ID `db752673-18fd-44db-865a-aa3e0b28698e`, you would remove it as shown in the following example.
49+
50+
```powershell
51+
C:\> Remove-SPOSiteDesign db752673-18fd-44db-865a-aa3e0b28698e
52+
```
53+
54+
<br/>
55+
56+
```javascript
57+
RestRequest("/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.DeleteSiteDesign", {id:"db752673-18fd-44db-865a-aa3e0b28698e"});
58+
```
59+
60+
> [!NOTE]
61+
> If you're not sure which site template is the default, run the **Get-SPOSiteDesign** cmdlet. It will list all site templates, and indicates which ones are defaults.
62+
63+
## See also
64+
65+
- [SharePoint site template and site script overview](site-design-overview.md)
66+
- [Browse and customize Microsoft-provided site templates](https://support.microsoft.com/office/apply-and-customize-sharepoint-site-templates-39382463-0e45-4d1b-be27-0e96aeec8398)

docs/declarative-customization/get-started-create-site-design.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Get started creating SharePoint site templates and site scripts
33
description: Create site templates to provide reusable lists, themes, layouts, pages, or custom actions so that your users can quickly build new SharePoint sites with the features they need.
4-
ms.date: 08/23/2021
4+
ms.date: 09/24/2021
55
ms.localizationpriority: high
66
---
77

@@ -109,6 +109,7 @@ The previous cmdlet creates a new site template named Contoso customer tracking.
109109
| WebTemplate | 64 | Team site template |
110110
| WebTemplate 1 | 1 | Team site (with group creation disabled) |
111111
| WebTemplate | 68 | Communication site template |
112+
| WebTemplate | 69 | Channel site template |
112113

113114

114115
The JSON response displays the **ID** of the new site template. You can use it in subsequent cmdlets to update or modify the site template.
@@ -155,6 +156,10 @@ Apply a published site template to a new or existing hub site. Then, all associa
155156

156157
You can also use the `Set-SPOHubSite` cmdlet. Review the [PowerShell cmdlets for SharePoint hub sites](../features/hub-site/hub-site-powershell.md) article.
157158

159+
>[!NOTE]
160+
> [Channel sites](/sharepoint/teams-connected-sites) are automatically blocked from joining a hub site.
161+
162+
158163
## See also
159164

160165
- [SharePoint site template and site script overview](site-design-overview.md)

docs/declarative-customization/site-design-json-schema.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Site design JSON schema
33
description: JSON schema reference for building site designs for SharePoint.
4-
ms.date: 10/09/2020
4+
ms.date: 09/24/2021
55
ms.localizationpriority: high
66
---
77

@@ -699,6 +699,9 @@ Get-Content '<Folder_location_to_site_script>\site-script.json' -Raw -Encoding U
699699

700700
Use the `applyTheme` verb to add a custom theme to the site. For more information about how to construct and upload these themes, see [SharePoint site theming](site-theming/sharepoint-site-theming-overview.md). This site action only works for applying custom themes; to apply one of our in-product SharePoint themes, create a copy as a custom one and reference that one.
701701

702+
> [!NOTE]
703+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
704+
702705
#### JSON value
703706

704707
- `themeName`: The name of the theme to apply.
@@ -756,6 +759,7 @@ Use the `setSiteBranding` verb to specify the navigation layout, the header layo
756759

757760
> [!NOTE]
758761
> Setting the navigation layout only works on the communication site template and for the hub navigation.
762+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
759763
760764
#### JSON value
761765

@@ -798,6 +802,9 @@ Use the `setSiteLogo` verb to specify a logo for your site.
798802

799803
## Join a hub site
800804

805+
> [!NOTE]
806+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
807+
801808
Use the `joinHubSite` verb to join the site to a designated hub site.
802809

803810
#### JSON value
@@ -917,6 +924,9 @@ Use the `triggerFlow` verb to kick off a custom flow.
917924

918925
## Configure regional settings
919926

927+
> [!NOTE]
928+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
929+
920930
Use the `setRegionalSettings` action to configure the regional settings of the site (*/_layouts/15/regionalsetng.aspx*).
921931

922932
#### JSON values
@@ -940,6 +950,9 @@ Use the `setRegionalSettings` action to configure the regional settings of the s
940950

941951
## Add users (principals) to SharePoint Groups
942952

953+
> [!NOTE]
954+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
955+
943956
Use the `addPrincipalToSPGroup` action to manage addition of users and groups to select default SharePoint groups. For more information, see [Understanding SharePoint Groups](https://support.office.com/article/Understanding-SharePoint-groups-94D9B261-161E-4ACE-829E-ECA1C8CD2EB8). This action can be used for licensed users, security groups, and Microsoft 365 groups.
944957

945958
#### JSON values
@@ -977,6 +990,9 @@ Use the `addPrincipalToSPGroup` action to manage addition of users and groups to
977990

978991
## Manage guest access
979992

993+
> [!NOTE]
994+
> This action is automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
995+
980996
Use the `setSiteExternalSharingCapability` action to manage guest access. For more information, see [Manage external sharing for your SharePoint Online environment](https://support.office.com/article/Manage-external-sharing-for-your-SharePoint-Online-environment-C8A462EB-0723-4B0B-8D0A-70FEAFE4BE85).
981997

982998
<!-- update this table matrix -->

docs/declarative-customization/site-design-overview.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: SharePoint site template and site script overview
33
description: Use SharePoint site scripts and site templates to provide custom configurations to apply when new sites are created.
4-
ms.date: 06/14/2021
4+
ms.date: 09/24/2021
55
ms.localizationpriority: high
66
---
77

@@ -25,6 +25,10 @@ This article describes how you can use site templates and site scripts to provid
2525

2626
Site templates can be used each time a new site is created to apply a consistent set of actions. They can also be applied to existing modern sites (group-connected Team and Communication sites). Most actions typically affect the site itself, such as setting the theme or creating lists. But a site template can also include other actions, such as recording the new site URL to a log, or sending a tweet.
2727

28+
> [!NOTE]
29+
> - Site templates created using custom site scripts will display in the **From your organization** tab in the site template gallery.
30+
> - Custom site templates made by your organization will display in the site template gallery based on the type of site chosen by the user - either a communication site or a team site. Therefore, it is likely users will not see all site templates from your organization in the site template gallery. Soon, users will have the ability to browse all site templates provided by your organization regardless of which type of site was chosen.
31+
2832
You create site templates and register them in SharePoint to one of the modern template sites: the Team site or the Communication site. You can see how this works in the following steps.
2933

3034
1. Go to the SharePoint start page on your developer tenant.
@@ -114,19 +118,19 @@ Each action in a site script is specified by a **verb** value in the JSON. In th
114118
- Creating a new list or library (or modifying the default one created with the site)
115119
- Creating site columns, content types, and configuring other list settings
116120
- Set site branding properties like navigation layout, header layout and header background
117-
- Applying a theme
121+
- Applying a theme**
118122
- Setting a site logo
119-
- Adding links to quick launch or hub navigation
123+
- Adding links to quick launch or hub navigation**
120124
- Triggering a Power Automate flow
121125
- Installing a deployed solution from the app catalog
122-
- Setting regional settings for the site
126+
- Setting regional settings for the site**
123127
- Adding principals (users and groups) to SharePoint roles**
124128
- Setting external sharing capability for the site**
125129

126130
For a complete list of available actions and their parameters, see the [JSON schema](site-design-json-schema.md).
127131

128132
> [!NOTE]
129-
> - Actions marked with ** are automatically blocked for channel sites.
133+
> - Actions marked with ** are automatically blocked for [channel sites](/sharepoint/teams-connected-sites).
130134
> - For libraries and lists, use the PowerShell command [Get-SPOSiteScriptFromList](/powershell/module/sharepoint-online/Get-SPOSiteScriptFromList) to create the site script syntax from an existing SharePoint list.
131135
132136
Site scripts can be run again on the same site after provisioning. Site scripts are non-destructive, so when they run again, they ensure that the site matches the configuration in the script.
@@ -235,6 +239,7 @@ In the previous example, the **Add-SPOSiteScript** cmdlet or **CreateSiteScript*
235239
| WebTemplate | 64 | Team site template |
236240
| WebTemplate 1 | 1 | Team site (with group creation disabled) |
237241
| WebTemplate | 68 | Communication site template |
242+
| WebTemplate | 69 | Channel site template |
238243

239244

240245

docs/spfx/deployment-spfx-teams-solutions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Deployment options for SharePoint Framework solutions for Microsoft Teams
33
description: Learn what options are available to deploy SharePoint Framework solutions for Microsoft Teams
4-
ms.date: 07/20/2021
4+
ms.date: 09/28/2021
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -71,7 +71,7 @@ To use your own Microsoft Teams app manifest & app package instead of letting Sh
7171
> [!IMPORTANT]
7272
> Don't compress the folder, instead compress the contents of the folder. If you ZIP the folder, it will a top-level subfolder to the resulting ZIP file which isn't a valid app package in Microsoft Teams.
7373
74-
1. Save the **TeamsSPFxApp.zip** in the SPFx solution's **./src/teams** folder.
74+
1. Save the **TeamsSPFxApp.zip** in the SPFx solution's **./teams** folder.
7575
1. Create the SPFx package the same way you would with a regular SPFx solution, using **gulp package-solution**. It will include the custom Microsoft Teams app package in the **\*.sppkg**.
7676

7777
### Dynamically reference the underlying SharePoint site URLs

docs/spfx/viva/get-started/build-first-sharepoint-adaptive-card-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Build your first SharePoint Adaptive Card Extension
33
description: Adaptive Card Extensions (ACEs) are a new SharePoint Framework component type, which enable developers to build rich, native extensions to Viva Connections' Dashboards and SharePoint Pages. In this tutorial, you'll build and explore your first ACE.
4-
ms.date: 09/08/2021
4+
ms.date: 09/24/2021
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -421,7 +421,7 @@ public onAction(action: IActionArguments): void {
421421
case 'button2':
422422
this.setState({
423423
subTitle: message
424-
})
424+
});
425425
break;
426426
}
427427
}

0 commit comments

Comments
 (0)