Skip to content

Commit 7c75812

Browse files
committed
Changed formatting from text to powershell.
1 parent de4e187 commit 7c75812

File tree

176 files changed

+549
-549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+549
-549
lines changed

appendix/common/add-basetemplate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ Help Author: Adam Najmanowicz, Michael West, Alex Washtell
114114

115115
Add base template of /sitecore/templates/User Defined/BaseTemplate to a template, using a path.
116116

117-
```text
117+
```powershell
118118
PS master:\> Add-BaseTemplate -Path "master:/sitecore/content/User Defined/Page" -Template "/sitecore/templates/User Defined/BaseTemplate"
119119
```
120120

121121
### EXAMPLE 2
122122

123123
Add multiple base templates to a template, using items.
124124

125-
```text
125+
```powershell
126126
PS master:\> $baseA = Get-Item -Path master:/sitecore/content/User Defined/BaseTemplateA
127127
PS master:\> $baseB = Get-Item -Path master:/sitecore/content/User Defined/BaseTemplateB
128128
PS master:\> Add-BaseTemplate -Path "master:/sitecore/content/User Defined/Page" -TemplateItem @($baseA, $baseB)

appendix/common/add-itemversion.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Creates a version of the item in a new language based on an existing language ve
44

55
## Syntax
66

7-
```text
7+
```powershell
88
Add-ItemVersion [-Item] <Item> [-Recurse] [-IfExist <Append | Skip | OverwriteLatest>] [-TargetLanguage <String[]>] [-DoNotCopyFields] [-IgnoredFields <String[]>] [-Language <String[]>]
99
1010
Add-ItemVersion [-Path] <String> [-Recurse] [-IfExist <Append | Skip | OverwriteLatest>] [-TargetLanguage <String[]>] [-DoNotCopyFields] [-IgnoredFields <String[]>] [-Language <String[]>]
@@ -200,13 +200,13 @@ Help Author: Adam Najmanowicz, Michael West
200200

201201
Translate the Home Item from English to US and Polish leaving the "Title" field blank. If a version exists don't do anything
202202

203-
```text
203+
```powershell
204204
PS master:\> Add-ItemVersion -Path "master:\content\home" -Language "en" -TargetLanguage "pl-pl", "en-us" -IfExist Skip -IgnoredFields "Title"
205205
```
206206

207207
### EXAMPLE 2
208208

209-
```text
209+
```powershell
210210
Add a Japanese version to /sitecore/content/home item in the master database based on itself
211211
PS master:\> Add-ItemVersion -Path "master:\content\home" -Language ja-JP -IfExist Append
212212
```
@@ -215,7 +215,7 @@ PS master:\> Add-ItemVersion -Path "master:\content\home" -Language ja-JP -IfExi
215215

216216
Translate the children of Home item \(but only those of Template Name "Sample Item"\) from English to US and Polish. If a version exists create a new version for that language. Display results in a table listing item name, language and created version number.
217217

218-
```text
218+
```powershell
219219
Get-ChildItem "master:\content\home" -Language "en" -Recurse | `
220220
Where-Object { $_.TemplateName -eq "Sample Item" } | `
221221
Add-ItemVersion -TargetLanguage "pl-pl" -IfExist Append | `

appendix/common/close-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Help Author: Adam Najmanowicz, Michael West
2222

2323
### EXAMPLE
2424

25-
```text
25+
```powershell
2626
PS master:\> Close-Window
2727
```
2828

appendix/common/convertfrom-clixml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Help Author: Adam Najmanowicz, Michael West
4646

4747
### EXAMPLE
4848

49-
```text
49+
```powershell
5050
PS master:\> #Convert original item to xml
5151
PS master:\> $myCliXmlItem = Get-Item -Path master:\content\home | ConvertTo-CliXml
5252
PS master:\> #print the CliXml

appendix/common/convertfrom-itemclone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Help Author: Adam Najmanowicz, Michael West
106106

107107
### EXAMPLE
108108

109-
```text
109+
```powershell
110110
PS master:\> ConvertFrom-ItemClone -Path master:\content\home
111111
```
112112

appendix/common/convertto-clixml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Help Author: Adam Najmanowicz, Michael West
4646

4747
### EXAMPLE
4848

49-
```text
49+
```powershell
5050
PS master:\> #Convert original item to xml
5151
PS master:\> $myCliXmlItem = Get-Item -Path master:\content\home | ConvertTo-CliXml
5252
PS master:\> #print the CliXml

appendix/common/expand-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ Help Author: Adam Najmanowicz, Michael West
105105

106106
The following expands tokens in fields on the item.
107107

108-
```text
108+
```powershell
109109
Get-Item -Path "master:\content\home" | Expand-Token
110110
```
111111

112112
### EXAMPLE 2
113113

114114
The following expands tokens in fields on the item. If the standard value of the field contains a token we modify the field to the token so the expansion will work (Sitecore API does not expand if the field is the same as Standard Values and never modified).
115115

116-
```text
116+
```powershell
117117
$tokens = @('$name', '$id', '$parentId', '$parentname', '$date', '$time', '$now')
118118
119119
$item = Get-Item -Path "master:\content\home"

appendix/common/get-archive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Help Author: Adam Najmanowicz, Michael West
5858

5959
### EXAMPLE
6060

61-
```text
61+
```powershell
6262
PS master:\> Get-Archive -Database "master"
6363
6464
Name Items

appendix/common/get-archiveitem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Retrieves a list of items found in the specified archive.
44

55
## Syntax
66

7-
```text
7+
```powershell
88
Get-ArchiveItem -Archive <Archive>
99
Get-ArchiveItem -Archive <Archive> [-ItemId <ID>]
1010
Get-ArchiveItem -Archive <Archive> [-Identity <AccountIdentity>]
@@ -74,7 +74,7 @@ Help Author: Adam Najmanowicz, Michael West
7474

7575
The following returns all items found in the specified archive.
7676

77-
```text
77+
```powershell
7878
$database = Get-Database -Name "master"
7979
$archiveName = "recyclebin"
8080
$archive = Get-Archive -Database $database -Name $archiveName
@@ -85,7 +85,7 @@ Get-ArchiveItem -Archive $archive
8585

8686
The following returns items matching the ItemId found in the specified archive.
8787

88-
```text
88+
```powershell
8989
$database = Get-Database -Name "master"
9090
$archiveName = "recyclebin"
9191
$archive = Get-Archive -Database $database -Name $archiveName
@@ -96,7 +96,7 @@ Get-ArchiveItem -Archive $archive -ItemId "{1BB32980-66B4-4ADA-9170-10A9D3336613
9696

9797
The following returns items moved to the recycle bin by the user found in the specified archive.
9898

99-
```text
99+
```powershell
100100
$database = Get-Database -Name "master"
101101
$archiveName = "recyclebin"
102102
$archive = Get-Archive -Database $database -Name $archiveName

appendix/common/get-cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Help Author: Adam Najmanowicz, Michael West
4040

4141
### EXAMPLE
4242

43-
```text
43+
```powershell
4444
PS master:\> Get-Cache -Name master*
4545
4646
Name Enabled Count Size Max Size Default Scavengable

0 commit comments

Comments
 (0)