Skip to content

Commit 4521fb6

Browse files
000-590: enablect
1 parent 0892cfe commit 4521fb6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

articles/en/spo/enablect.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Content types in SharePoint help organize and manage various document types or i
2121
By default, SharePoint includes several predefined content types. However, to meet your organization's unique needs, you may need to create custom content types for specific document types or workflows.
2222

2323

24+
<br/><br/>
2425

2526
## User Interface
2627

@@ -31,35 +32,35 @@ How to disable/enable content type management manually:
3132

3233
2. On the right-hand side click List Settings.
3334

34-
<img src="/articles/img/enablect.PNG" ><br/>
35+
<img src="/articles/img/enablect.png" ><br/>
3536

3637

3738
4. In the Settings choose Advanced settings.
3839

39-
<img src="/articles/img/enablect2.PNG" ><br/>
40+
<img src="/articles/img/enablect2.png" ><br/>
4041

4142

4243
5. Under Content types section, you can choose whether to allow or not the management of content types. Yes corresponds to $true in the script below, while No corresponds to $false:
4344

4445

45-
<img src="/articles/img/enablect3.PNG" ><br/>
46-
46+
<img src="/articles/img/enablect3.png" ><br/>
4747

4848

4949

50+
<br/><br/>
5051

5152
## PnP Powershell
5253

5354

54-
### For one list
55+
#### For one list
5556

5657
```powershell
5758
Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite" -UseWebLogin
5859
Set-PnPList -Identity "Documents" -ContentTypesEnabled $true
5960
```
6061

6162

62-
### For all lists in the site collection
63+
#### For all lists in the site collection
6364

6465
```powershell
6566
# Connect to the SharePoint site
@@ -76,7 +77,7 @@ foreach ($list in $lists) {
7677
```
7778

7879

79-
80+
<br/><br/>
8081

8182
## PowerShell and CSOM
8283

@@ -151,7 +152,7 @@ $ContentTypesEnabled = $true
151152
Set-SPOListsContentTypesEnabled -Username $Username -AdminPassword $AdminPassword -Url $Url -ContentTypesEnabled $ContentTypesEnabled
152153
```
153154

154-
### Key Points:
155+
#### Key Points:
155156

156157
- **ContentTypesEnabled**:
157158
- Set this parameter to `$true` to enable content types or `$false` to disable them for all lists in the site.
@@ -165,7 +166,7 @@ Set-SPOListsContentTypesEnabled -Username $Username -AdminPassword $AdminPasswor
165166
- **Adding CSOM DLLs**:
166167
- The script includes paths to the SharePoint CSOM DLLs, which are required for interacting with SharePoint Online using the Client-Side Object Model (CSOM).
167168

168-
### Use Cases:
169+
#### Use Cases:
169170

170171
- **Enable Content Types for all Lists**:
171172
- You might use this script when you need to standardize content types across multiple lists in a SharePoint site.

0 commit comments

Comments
 (0)