@antonytm/mcp-sitecore-server 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/bundle.js +106 -12
- package/dist/register.js +7 -0
- package/dist/register.js.map +1 -1
- package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
- package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
- package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
- package/dist/tools/powershell/documentation/add-rendering.md +217 -0
- package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
- package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
- package/dist/tools/powershell/documentation/close-window.md +32 -0
- package/dist/tools/powershell/documentation/commands-list.md +134 -0
- package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
- package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
- package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
- package/dist/tools/powershell/documentation/disable-user.md +89 -0
- package/dist/tools/powershell/documentation/enable-user.md +89 -0
- package/dist/tools/powershell/documentation/expand-token.md +144 -0
- package/dist/tools/powershell/documentation/export-item.md +165 -0
- package/dist/tools/powershell/documentation/export-package.md +129 -0
- package/dist/tools/powershell/documentation/export-role.md +150 -0
- package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
- package/dist/tools/powershell/documentation/export-user.md +147 -0
- package/dist/tools/powershell/documentation/find-item.md +718 -0
- package/dist/tools/powershell/documentation/get-archive.md +73 -0
- package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
- package/dist/tools/powershell/documentation/get-cache.md +62 -0
- package/dist/tools/powershell/documentation/get-database.md +96 -0
- package/dist/tools/powershell/documentation/get-domain.md +75 -0
- package/dist/tools/powershell/documentation/get-item.md +186 -0
- package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
- package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
- package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
- package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
- package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
- package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
- package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
- package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
- package/dist/tools/powershell/documentation/get-layout.md +142 -0
- package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
- package/dist/tools/powershell/documentation/get-package.md +63 -0
- package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
- package/dist/tools/powershell/documentation/get-preset.md +70 -0
- package/dist/tools/powershell/documentation/get-rendering.md +248 -0
- package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
- package/dist/tools/powershell/documentation/get-role.md +134 -0
- package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
- package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
- package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
- package/dist/tools/powershell/documentation/get-session.md +107 -0
- package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
- package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
- package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
- package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
- package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
- package/dist/tools/powershell/documentation/get-user.md +193 -0
- package/dist/tools/powershell/documentation/get-useragent.md +38 -0
- package/dist/tools/powershell/documentation/import-function.md +83 -0
- package/dist/tools/powershell/documentation/import-item-1.md +180 -0
- package/dist/tools/powershell/documentation/import-item.md +180 -0
- package/dist/tools/powershell/documentation/import-role.md +137 -0
- package/dist/tools/powershell/documentation/import-user.md +137 -0
- package/dist/tools/powershell/documentation/initialize-item.md +87 -0
- package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
- package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
- package/dist/tools/powershell/documentation/install-package.md +95 -0
- package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
- package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
- package/dist/tools/powershell/documentation/invoke-script.md +111 -0
- package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
- package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
- package/dist/tools/powershell/documentation/lock-item.md +157 -0
- package/dist/tools/powershell/documentation/login-user.md +56 -0
- package/dist/tools/powershell/documentation/logout-user.md +30 -0
- package/dist/tools/powershell/documentation/merge-layout.md +102 -0
- package/dist/tools/powershell/documentation/new-domain.md +72 -0
- package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
- package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
- package/dist/tools/powershell/documentation/new-filesource.md +128 -0
- package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
- package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
- package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
- package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
- package/dist/tools/powershell/documentation/new-package.md +81 -0
- package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
- package/dist/tools/powershell/documentation/new-rendering.md +243 -0
- package/dist/tools/powershell/documentation/new-role.md +56 -0
- package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
- package/dist/tools/powershell/documentation/new-user.md +161 -0
- package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
- package/dist/tools/powershell/documentation/out-download.md +123 -0
- package/dist/tools/powershell/documentation/protect-item.md +120 -0
- package/dist/tools/powershell/documentation/publish-item.md +224 -0
- package/dist/tools/powershell/documentation/read-variable.md +252 -0
- package/dist/tools/powershell/documentation/receive-file.md +244 -0
- package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
- package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
- package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
- package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/remove-domain.md +70 -0
- package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
- package/dist/tools/powershell/documentation/remove-layout.md +151 -0
- package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
- package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
- package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
- package/dist/tools/powershell/documentation/remove-role.md +70 -0
- package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
- package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
- package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/remove-session.md +77 -0
- package/dist/tools/powershell/documentation/remove-user.md +97 -0
- package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
- package/dist/tools/powershell/documentation/reset-layout.md +130 -0
- package/dist/tools/powershell/documentation/restart-application.md +30 -0
- package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
- package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/send-file.md +160 -0
- package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
- package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
- package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
- package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
- package/dist/tools/powershell/documentation/set-layout.md +166 -0
- package/dist/tools/powershell/documentation/set-rendering.md +213 -0
- package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
- package/dist/tools/powershell/documentation/set-user.md +221 -0
- package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
- package/dist/tools/powershell/documentation/show-alert.md +53 -0
- package/dist/tools/powershell/documentation/show-application.md +150 -0
- package/dist/tools/powershell/documentation/show-confirm.md +61 -0
- package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
- package/dist/tools/powershell/documentation/show-input.md +129 -0
- package/dist/tools/powershell/documentation/show-listview.md +276 -0
- package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
- package/dist/tools/powershell/documentation/show-result.md +158 -0
- package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
- package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
- package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
- package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
- package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
- package/dist/tools/powershell/documentation/test-account.md +74 -0
- package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
- package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
- package/dist/tools/powershell/documentation/test-rule.md +111 -0
- package/dist/tools/powershell/documentation/unlock-item.md +124 -0
- package/dist/tools/powershell/documentation/unlock-user.md +84 -0
- package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
- package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
- package/dist/tools/powershell/documentation/update-listview.md +139 -0
- package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
- package/dist/tools/powershell/documentation/write-log.md +82 -0
- package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
- package/dist/tools/powershell/get-powershell-documentation.js +47 -0
- package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
- package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
- package/dist/tools/powershell/run-powershell-script.js +13 -0
- package/dist/tools/powershell/run-powershell-script.js.map +1 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
- package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
- package/package.json +8 -8
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Remove-Rendering
|
|
2
|
+
|
|
3
|
+
Removes renderings from an item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Remove-Rendering -Item <Item> [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
9
|
+
|
|
10
|
+
Remove-Rendering -Item <Item> -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
11
|
+
|
|
12
|
+
Remove-Rendering -Item <Item> -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
13
|
+
|
|
14
|
+
Remove-Rendering -Path <String> [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
15
|
+
|
|
16
|
+
Remove-Rendering -Path <String> -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
17
|
+
|
|
18
|
+
Remove-Rendering -Path <String> -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
19
|
+
|
|
20
|
+
Remove-Rendering [-Id <String>] [-Database <String>] [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
21
|
+
|
|
22
|
+
Remove-Rendering [-Id <String>] [-Database <String>] -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
23
|
+
|
|
24
|
+
Remove-Rendering [-Id <String>] [-Database <String>] -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Detailed Description
|
|
28
|
+
|
|
29
|
+
Removes renderings from an item based on a number of qualifying criteria. The search criteria are cumulative and narrowing the search in an "AND" manner.
|
|
30
|
+
|
|
31
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
32
|
+
|
|
33
|
+
## Parameters
|
|
34
|
+
|
|
35
|
+
### -Item <Item>
|
|
36
|
+
|
|
37
|
+
The item to be processed.
|
|
38
|
+
|
|
39
|
+
| Aliases | |
|
|
40
|
+
| :--- | :--- |
|
|
41
|
+
| Required? | true |
|
|
42
|
+
| Position? | named |
|
|
43
|
+
| Default Value | |
|
|
44
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
45
|
+
| Accept Wildcard Characters? | false |
|
|
46
|
+
|
|
47
|
+
### -Path <String>
|
|
48
|
+
|
|
49
|
+
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
50
|
+
|
|
51
|
+
| Aliases | |
|
|
52
|
+
| :--- | :--- |
|
|
53
|
+
| Required? | true |
|
|
54
|
+
| Position? | named |
|
|
55
|
+
| Default Value | |
|
|
56
|
+
| Accept Pipeline Input? | false |
|
|
57
|
+
| Accept Wildcard Characters? | false |
|
|
58
|
+
|
|
59
|
+
### -Id <String>
|
|
60
|
+
|
|
61
|
+
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
62
|
+
|
|
63
|
+
| Aliases | |
|
|
64
|
+
| :--- | :--- |
|
|
65
|
+
| Required? | false |
|
|
66
|
+
| Position? | named |
|
|
67
|
+
| Default Value | |
|
|
68
|
+
| Accept Pipeline Input? | false |
|
|
69
|
+
| Accept Wildcard Characters? | false |
|
|
70
|
+
|
|
71
|
+
### -Database <String>
|
|
72
|
+
|
|
73
|
+
Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
74
|
+
|
|
75
|
+
| Aliases | |
|
|
76
|
+
| :--- | :--- |
|
|
77
|
+
| Required? | false |
|
|
78
|
+
| Position? | named |
|
|
79
|
+
| Default Value | |
|
|
80
|
+
| Accept Pipeline Input? | false |
|
|
81
|
+
| Accept Wildcard Characters? | false |
|
|
82
|
+
|
|
83
|
+
### -DataSource <String>
|
|
84
|
+
|
|
85
|
+
Data source filter - supports wildcards.
|
|
86
|
+
|
|
87
|
+
| Aliases | |
|
|
88
|
+
| :--- | :--- |
|
|
89
|
+
| Required? | false |
|
|
90
|
+
| Position? | named |
|
|
91
|
+
| Default Value | |
|
|
92
|
+
| Accept Pipeline Input? | false |
|
|
93
|
+
| Accept Wildcard Characters? | false |
|
|
94
|
+
|
|
95
|
+
### -Rendering <Item>
|
|
96
|
+
|
|
97
|
+
Item representing the sublayout/rendering. If matching the rendering will be removed.
|
|
98
|
+
|
|
99
|
+
| Aliases | |
|
|
100
|
+
| :--- | :--- |
|
|
101
|
+
| Required? | false |
|
|
102
|
+
| Position? | named |
|
|
103
|
+
| Default Value | |
|
|
104
|
+
| Accept Pipeline Input? | false |
|
|
105
|
+
| Accept Wildcard Characters? | false |
|
|
106
|
+
|
|
107
|
+
### -Index <Int32>
|
|
108
|
+
|
|
109
|
+
Index at which the rendering exists in the layout. The rendering at that index will be removed.
|
|
110
|
+
|
|
111
|
+
| Aliases | |
|
|
112
|
+
| :--- | :--- |
|
|
113
|
+
| Required? | false |
|
|
114
|
+
| Position? | named |
|
|
115
|
+
| Default Value | |
|
|
116
|
+
| Accept Pipeline Input? | false |
|
|
117
|
+
| Accept Wildcard Characters? | false |
|
|
118
|
+
|
|
119
|
+
### -PlaceHolder <String>
|
|
120
|
+
|
|
121
|
+
Place holder at which the rendering exists in the layout. Rendering at that placeholder will be removed.
|
|
122
|
+
|
|
123
|
+
| Aliases | |
|
|
124
|
+
| :--- | :--- |
|
|
125
|
+
| Required? | false |
|
|
126
|
+
| Position? | named |
|
|
127
|
+
| Default Value | |
|
|
128
|
+
| Accept Pipeline Input? | false |
|
|
129
|
+
| Accept Wildcard Characters? | false |
|
|
130
|
+
|
|
131
|
+
### -Parameter <Hashtable>
|
|
132
|
+
|
|
133
|
+
Additional rendering parameter values. If both name and value match - the rendering will be removed. Values support wildcards.
|
|
134
|
+
|
|
135
|
+
| Aliases | |
|
|
136
|
+
| :--- | :--- |
|
|
137
|
+
| Required? | false |
|
|
138
|
+
| Position? | named |
|
|
139
|
+
| Default Value | |
|
|
140
|
+
| Accept Pipeline Input? | false |
|
|
141
|
+
| Accept Wildcard Characters? | false |
|
|
142
|
+
|
|
143
|
+
### -Instance <RenderingDefinition>
|
|
144
|
+
|
|
145
|
+
Specific instance of rendering that should be removed. The instance coule earlier be obtained through e.g. use of Get-Rendering.
|
|
146
|
+
|
|
147
|
+
| Aliases | |
|
|
148
|
+
| :--- | :--- |
|
|
149
|
+
| Required? | true |
|
|
150
|
+
| Position? | named |
|
|
151
|
+
| Default Value | |
|
|
152
|
+
| Accept Pipeline Input? | false |
|
|
153
|
+
| Accept Wildcard Characters? | false |
|
|
154
|
+
|
|
155
|
+
### -UniqueId <String>
|
|
156
|
+
|
|
157
|
+
UniqueID of the rendering to be removed. The instance coule earlier be obtained through e.g. use of OD of rendering retrieved with Get-Rendering.
|
|
158
|
+
|
|
159
|
+
| Aliases | |
|
|
160
|
+
| :--- | :--- |
|
|
161
|
+
| Required? | true |
|
|
162
|
+
| Position? | named |
|
|
163
|
+
| Default Value | |
|
|
164
|
+
| Accept Pipeline Input? | false |
|
|
165
|
+
| Accept Wildcard Characters? | false |
|
|
166
|
+
|
|
167
|
+
### -Device <DeviceItem>
|
|
168
|
+
|
|
169
|
+
Device for which the rendering should be removed.
|
|
170
|
+
|
|
171
|
+
| Aliases | |
|
|
172
|
+
| :--- | :--- |
|
|
173
|
+
| Required? | false |
|
|
174
|
+
| Position? | named |
|
|
175
|
+
| Default Value | |
|
|
176
|
+
| Accept Pipeline Input? | false |
|
|
177
|
+
| Accept Wildcard Characters? | false |
|
|
178
|
+
|
|
179
|
+
### -FinalLayout <SwitchParameter>
|
|
180
|
+
|
|
181
|
+
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
|
|
182
|
+
|
|
183
|
+
| Aliases | |
|
|
184
|
+
| :--- | :--- |
|
|
185
|
+
| Required? | false |
|
|
186
|
+
| Position? | named |
|
|
187
|
+
| Default Value | |
|
|
188
|
+
| Accept Pipeline Input? | false |
|
|
189
|
+
| Accept Wildcard Characters? | false |
|
|
190
|
+
|
|
191
|
+
### -Language <String\[\]>
|
|
192
|
+
|
|
193
|
+
| Aliases | |
|
|
194
|
+
| :--- | :--- |
|
|
195
|
+
| Required? | false |
|
|
196
|
+
| Position? | named |
|
|
197
|
+
| Default Value | |
|
|
198
|
+
| Accept Pipeline Input? | false |
|
|
199
|
+
| Accept Wildcard Characters? | false |
|
|
200
|
+
|
|
201
|
+
## Inputs
|
|
202
|
+
|
|
203
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
204
|
+
|
|
205
|
+
* Sitecore.Data.Items.Item
|
|
206
|
+
|
|
207
|
+
## Outputs
|
|
208
|
+
|
|
209
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
210
|
+
|
|
211
|
+
* System.Void
|
|
212
|
+
|
|
213
|
+
## Notes
|
|
214
|
+
|
|
215
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
216
|
+
|
|
217
|
+
## Examples
|
|
218
|
+
|
|
219
|
+
### EXAMPLE 1
|
|
220
|
+
|
|
221
|
+
remove all renderings for "Default" device
|
|
222
|
+
|
|
223
|
+
```powershell
|
|
224
|
+
Remove-Rendering -Path master:\content\home -Device (Get-LayoutDevice "Default")
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### EXAMPLE 2
|
|
228
|
+
|
|
229
|
+
remove all renderings from the "main" placeholder and all of its embedded placeholders.
|
|
230
|
+
|
|
231
|
+
```powershell
|
|
232
|
+
Remove-Rendering -Path master:\content\home -PlaceHolder "main*"
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### EXAMPLE 3
|
|
236
|
+
|
|
237
|
+
remove all renderings from the "main" placeholder and all of its embedded placeholders, but only in the "Default" device
|
|
238
|
+
|
|
239
|
+
```powershell
|
|
240
|
+
Remove-Rendering -Path master:\content\home -PlaceHolder "main*" -Device (Get-LayoutDevice "Default")
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## Related Topics
|
|
244
|
+
|
|
245
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
246
|
+
* [Add-Rendering](add-rendering.md)
|
|
247
|
+
* [New-Rendering](new-rendering.md)
|
|
248
|
+
* [Set-Rendering](set-rendering.md)
|
|
249
|
+
* [Get-Rendering](get-rendering.md)
|
|
250
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
251
|
+
* [Get-Layout](get-layout.md)
|
|
252
|
+
* [Set-Layout](set-layout.md)
|
|
253
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Remove-RenderingParameter
|
|
2
|
+
|
|
3
|
+
Removes the specified rendering parameter from the rendering.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Remove-RenderingParameter -Instance <RenderingDefinition> [-Name <String[]>]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
Removes the specified rendering parameter from the rendering.
|
|
14
|
+
|
|
15
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -Instance <RenderingDefinition>
|
|
20
|
+
|
|
21
|
+
Rendering definition containing the rendering parameters.
|
|
22
|
+
|
|
23
|
+
| Aliases | |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Required? | true |
|
|
26
|
+
| Position? | named |
|
|
27
|
+
| Default Value | |
|
|
28
|
+
| Accept Pipeline Input? | false |
|
|
29
|
+
| Accept Wildcard Characters? | false |
|
|
30
|
+
|
|
31
|
+
### -Name <String\[\]>
|
|
32
|
+
|
|
33
|
+
The names (or keys) identifying specific rendering parameters.
|
|
34
|
+
|
|
35
|
+
| Aliases | |
|
|
36
|
+
| :--- | :--- |
|
|
37
|
+
| Required? | false |
|
|
38
|
+
| Position? | named |
|
|
39
|
+
| Default Value | |
|
|
40
|
+
| Accept Pipeline Input? | false |
|
|
41
|
+
| Accept Wildcard Characters? | false |
|
|
42
|
+
|
|
43
|
+
## Inputs
|
|
44
|
+
|
|
45
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
46
|
+
|
|
47
|
+
* Sitecore.Layouts.RenderingDefinition
|
|
48
|
+
|
|
49
|
+
## Outputs
|
|
50
|
+
|
|
51
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
52
|
+
|
|
53
|
+
* Sitecore.Layouts.RenderingDefinition
|
|
54
|
+
|
|
55
|
+
## Notes
|
|
56
|
+
|
|
57
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE
|
|
62
|
+
|
|
63
|
+
The following removes the specified rendering parameter and updates the item.
|
|
64
|
+
|
|
65
|
+
```powershell
|
|
66
|
+
$item = Get-Item -Path "master" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
67
|
+
|
|
68
|
+
Get-Rendering -Item $item -FinalLayout |
|
|
69
|
+
Remove-RenderingParameter -Name"SampleKey2" |
|
|
70
|
+
Set-Rendering -Item $item -FinalLayout
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Related Topics
|
|
74
|
+
|
|
75
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
76
|
+
* [New-Rendering](new-rendering.md)
|
|
77
|
+
* [Set-Rendering](set-rendering.md)
|
|
78
|
+
* [Get-Rendering](get-rendering.md)
|
|
79
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
80
|
+
* [Remove-Rendering](remove-rendering.md)
|
|
81
|
+
* [Get-Layout](get-layout.md)
|
|
82
|
+
* [Set-Layout](set-layout.md)
|
|
83
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Remove-Role
|
|
2
|
+
|
|
3
|
+
Removes a Sitecore role.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Remove-Role \[-Identity\] <AccountIdentity>
|
|
8
|
+
|
|
9
|
+
Remove-Role -Instance <Role>
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
The Remove-Role command removes a Sitecore role.
|
|
14
|
+
|
|
15
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -Identity <AccountIdentity>
|
|
20
|
+
|
|
21
|
+
Role name including domain. If no domain is specified - 'sitecore' will be used as the default value
|
|
22
|
+
|
|
23
|
+
| Aliases | |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Required? | true |
|
|
26
|
+
| Position? | 1 |
|
|
27
|
+
| Default Value | |
|
|
28
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
29
|
+
| Accept Wildcard Characters? | false |
|
|
30
|
+
|
|
31
|
+
### -Instance <Role>
|
|
32
|
+
|
|
33
|
+
Role instance like that returned by the Get-Role command.
|
|
34
|
+
|
|
35
|
+
| Aliases | |
|
|
36
|
+
| :--- | :--- |
|
|
37
|
+
| Required? | true |
|
|
38
|
+
| Position? | named |
|
|
39
|
+
| Default Value | |
|
|
40
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
41
|
+
| Accept Wildcard Characters? | false |
|
|
42
|
+
|
|
43
|
+
## Inputs
|
|
44
|
+
|
|
45
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
46
|
+
|
|
47
|
+
* Sitecore.Security.Accounts.Role
|
|
48
|
+
|
|
49
|
+
## Outputs
|
|
50
|
+
|
|
51
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
52
|
+
|
|
53
|
+
* None
|
|
54
|
+
|
|
55
|
+
## Notes
|
|
56
|
+
|
|
57
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
PS master:\> Remove-Role -Identity Michael
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Related Topics
|
|
68
|
+
|
|
69
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
70
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Remove-RoleMember
|
|
2
|
+
|
|
3
|
+
Removes one or more Sitecore users from the specified role.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Remove-RoleMember \[-Identity\] <AccountIdentity> -Members <AccountIdentity\[\]>
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Remove-RoleMember command gets a role and removes members of the Sitecore role.
|
|
12
|
+
|
|
13
|
+
The Identity parameter specifies the Sitecore role to get. You can specify a role by its local name or fully qualified name.
|
|
14
|
+
|
|
15
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -Identity <AccountIdentity>
|
|
20
|
+
|
|
21
|
+
Specifies the Sitecore role by providing one of the following values.
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
Local Name
|
|
25
|
+
Example: developer
|
|
26
|
+
Fully Qualified Name
|
|
27
|
+
Example: sitecore\developer
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Aliases | |
|
|
31
|
+
| :--- | :--- |
|
|
32
|
+
| Required? | true |
|
|
33
|
+
| Position? | 1 |
|
|
34
|
+
| Default Value | |
|
|
35
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
36
|
+
| Accept Wildcard Characters? | false |
|
|
37
|
+
|
|
38
|
+
### -Members <AccountIdentity\[\]>
|
|
39
|
+
|
|
40
|
+
| Aliases | |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| Required? | true |
|
|
43
|
+
| Position? | named |
|
|
44
|
+
| Default Value | |
|
|
45
|
+
| Accept Pipeline Input? | false |
|
|
46
|
+
| Accept Wildcard Characters? | false |
|
|
47
|
+
|
|
48
|
+
## Inputs
|
|
49
|
+
|
|
50
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
51
|
+
|
|
52
|
+
* System.String
|
|
53
|
+
|
|
54
|
+
Represents the identity of a role.
|
|
55
|
+
|
|
56
|
+
## Outputs
|
|
57
|
+
|
|
58
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
59
|
+
|
|
60
|
+
* None.
|
|
61
|
+
|
|
62
|
+
## Notes
|
|
63
|
+
|
|
64
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
65
|
+
|
|
66
|
+
## Examples
|
|
67
|
+
|
|
68
|
+
### EXAMPLE
|
|
69
|
+
|
|
70
|
+
```powershell
|
|
71
|
+
PS master:\> Remove-RoleMember -Identity developer -Members "michael","adam","mike"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Related Topics
|
|
75
|
+
|
|
76
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
77
|
+
* [Add-RoleMember](add-rolemember.md)
|
|
78
|
+
* [Get-RoleMember](get-rolemember.md)
|
|
79
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Remove-ScriptSession
|
|
2
|
+
|
|
3
|
+
Removes a persistent Script Session from memory.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Remove-ScriptSession -Id <String\[\]>
|
|
8
|
+
|
|
9
|
+
Remove-ScriptSession -Session <ScriptSession\[\]>
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
Removes a persistent Script Session from memory.
|
|
14
|
+
|
|
15
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -Id <String\[\]>
|
|
20
|
+
|
|
21
|
+
Id of the PowerShell session to be removed from memory.
|
|
22
|
+
|
|
23
|
+
| Aliases | |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Required? | true |
|
|
26
|
+
| Position? | named |
|
|
27
|
+
| Default Value | |
|
|
28
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
29
|
+
| Accept Wildcard Characters? | false |
|
|
30
|
+
|
|
31
|
+
### -Session <ScriptSession\[\]>
|
|
32
|
+
|
|
33
|
+
Session to be removed.
|
|
34
|
+
|
|
35
|
+
| Aliases | |
|
|
36
|
+
| :--- | :--- |
|
|
37
|
+
| Required? | true |
|
|
38
|
+
| Position? | named |
|
|
39
|
+
| Default Value | |
|
|
40
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
41
|
+
| Accept Wildcard Characters? | false |
|
|
42
|
+
|
|
43
|
+
## Inputs
|
|
44
|
+
|
|
45
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
46
|
+
|
|
47
|
+
* System.String or Spe.Core.Host.ScriptSession
|
|
48
|
+
|
|
49
|
+
## Notes
|
|
50
|
+
|
|
51
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
### EXAMPLE
|
|
56
|
+
|
|
57
|
+
```powershell
|
|
58
|
+
The following removes the script session using the specified Id.
|
|
59
|
+
|
|
60
|
+
PS master:\> Remove-ScriptSession -Id "Long running script"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Related Topics
|
|
64
|
+
|
|
65
|
+
* [Get-ScriptSession](get-scriptsession.md)
|
|
66
|
+
* [Receive-ScriptSession](receive-scriptsession.md)
|
|
67
|
+
* [Start-ScriptSession](start-scriptsession.md)
|
|
68
|
+
* [Stop-ScriptSession](stop-scriptsession.md)
|
|
69
|
+
* [Wait-ScriptSession](wait-scriptsession.md)
|
|
70
|
+
* [https://git.io/spe](https://git.io/spe)
|
|
71
|
+
* [https://blog.najmanowicz.com/2014/10/26/sitecore-powershell-extensions-persistent-sessions/](https://blog.najmanowicz.com/2014/10/26/sitecore-powershell-extensions-persistent-sessions/)
|
|
72
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Remove-SearchIndexItem
|
|
2
|
+
|
|
3
|
+
## Syntax
|
|
4
|
+
|
|
5
|
+
```powershell
|
|
6
|
+
Remove-SearchIndexItem -Item <Item> [-Name <String>] [-AsJob]
|
|
7
|
+
Remove-SearchIndexItem -Item <Item> [-Name <String>] [-AsJob]
|
|
8
|
+
Remove-SearchIndexItem -SearchResultItem <SearchResultItem> [-AsJob]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
Removes an indexed item from the specified index. Supports wildcard filtering for the index name.
|
|
14
|
+
|
|
15
|
+
© 2010-2020 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -Item <Item>
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | true |
|
|
24
|
+
| Position? | named |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
### -SearchResultItem <SearchResultItem>
|
|
30
|
+
|
|
31
|
+
| Aliases | |
|
|
32
|
+
| :--- | :--- |
|
|
33
|
+
| Required? | true |
|
|
34
|
+
| Position? | named |
|
|
35
|
+
| Default Value | |
|
|
36
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
37
|
+
| Accept Wildcard Characters? | false |
|
|
38
|
+
|
|
39
|
+
### -AsJob <SwitchParameter>
|
|
40
|
+
|
|
41
|
+
| Aliases | |
|
|
42
|
+
| :--- | :--- |
|
|
43
|
+
| Required? | false |
|
|
44
|
+
| Position? | named |
|
|
45
|
+
| Default Value | |
|
|
46
|
+
| Accept Pipeline Input? | false |
|
|
47
|
+
| Accept Wildcard Characters? | false |
|
|
48
|
+
|
|
49
|
+
### -Name <String>
|
|
50
|
+
|
|
51
|
+
| Aliases | |
|
|
52
|
+
| :--- | :--- |
|
|
53
|
+
| Required? | false |
|
|
54
|
+
| Position? | named |
|
|
55
|
+
| Default Value | |
|
|
56
|
+
| Accept Pipeline Input? | false |
|
|
57
|
+
| Accept Wildcard Characters? | false |
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE 1
|
|
62
|
+
|
|
63
|
+
The following removes the indexed item from the specified search index.
|
|
64
|
+
|
|
65
|
+
```powershell
|
|
66
|
+
$item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
67
|
+
$indexName = "sitecore_master_index"
|
|
68
|
+
Remove-SearchIndexItem -Item $item -Name $indexName
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### EXAMPLE 2
|
|
72
|
+
|
|
73
|
+
The following removes the indexed item from the indexes matching the wildcard pattern.
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
$item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
77
|
+
$indexName = "sitecore_*_index"
|
|
78
|
+
Remove-SearchIndexItem -Item $item -Name $indexName
|
|
79
|
+
```
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Remove-Session
|
|
2
|
+
|
|
3
|
+
Removes one or more Sitecore user sessions.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Remove-Session -InstanceId <String\[\]>
|
|
8
|
+
|
|
9
|
+
Remove-Session \[-Instance\] <Session>
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
The Remove-Session command removes user sessions in Sitecore.
|
|
14
|
+
|
|
15
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### -InstanceId <String\[\]>
|
|
20
|
+
|
|
21
|
+
Specifies the Sitecore SessionID.
|
|
22
|
+
|
|
23
|
+
| Aliases | |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Required? | true |
|
|
26
|
+
| Position? | named |
|
|
27
|
+
| Default Value | |
|
|
28
|
+
| Accept Pipeline Input? | false |
|
|
29
|
+
| Accept Wildcard Characters? | false |
|
|
30
|
+
|
|
31
|
+
### -Instance <Session>
|
|
32
|
+
|
|
33
|
+
Specifies the Sitecore user sessions.
|
|
34
|
+
|
|
35
|
+
| Aliases | |
|
|
36
|
+
| :--- | :--- |
|
|
37
|
+
| Required? | true |
|
|
38
|
+
| Position? | 1 |
|
|
39
|
+
| Default Value | |
|
|
40
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
41
|
+
| Accept Wildcard Characters? | false |
|
|
42
|
+
|
|
43
|
+
## Inputs
|
|
44
|
+
|
|
45
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
46
|
+
|
|
47
|
+
* Accepts a user session.\* Sitecore.Web.Authentication.DomainAccessGuard.Sessio
|
|
48
|
+
|
|
49
|
+
## Outputs
|
|
50
|
+
|
|
51
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
52
|
+
|
|
53
|
+
* None.
|
|
54
|
+
|
|
55
|
+
## Notes
|
|
56
|
+
|
|
57
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE 1
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
PS master:\> Remove-Session -InstanceId tekipna1lk0ccr2z1bdjsua2,wq4bfivfm2tbgkgdccpyzczp
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### EXAMPLE 2
|
|
68
|
+
|
|
69
|
+
```powershell
|
|
70
|
+
PS master:\> Get-Session -Identity michael | Remove-Session
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Related Topics
|
|
74
|
+
|
|
75
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
76
|
+
* [Get-Session](get-session.md)
|
|
77
|
+
|