@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,410 @@
|
|
|
1
|
+
# Add-PlaceholderSetting
|
|
2
|
+
|
|
3
|
+
Adds a placeholder setting to a chosen device for the presentation of an item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Add-PlaceholderSetting [-Item] <Item> -Instance <PlaceholderDefinition> [-MetaDataItemId <string>] [-Key <string>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
9
|
+
|
|
10
|
+
Add-PlaceholderSetting [-Path] <string> -Instance <PlaceholderDefinition> [-MetaDataItemId <string>] [-Key <string>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
11
|
+
|
|
12
|
+
Add-PlaceholderSetting -Instance <PlaceholderDefinition> -Id <string> [-MetaDataItemId <string>] [-Key <string>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>] [-Database <string>]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Detailed Description
|
|
16
|
+
|
|
17
|
+
Adds a placeholder setting to a chosen device for the presentation of an item.
|
|
18
|
+
|
|
19
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### -Database <string>
|
|
24
|
+
|
|
25
|
+
Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
26
|
+
|
|
27
|
+
<table>
|
|
28
|
+
<thead></thead>
|
|
29
|
+
<tbody>
|
|
30
|
+
<tr>
|
|
31
|
+
<td>Aliases</td>
|
|
32
|
+
<td>None</td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>Required?</td>
|
|
36
|
+
<td>false</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>Position?</td>
|
|
40
|
+
<td>Named</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>Default Value</td>
|
|
44
|
+
<td></td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>Accept Pipeline Input?</td>
|
|
48
|
+
<td>false</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>Accept Wildcard Characters?</td>
|
|
52
|
+
<td>false</td>
|
|
53
|
+
</tr>
|
|
54
|
+
</tbody>
|
|
55
|
+
</table>
|
|
56
|
+
|
|
57
|
+
### -Device <DeviceItem>
|
|
58
|
+
|
|
59
|
+
Device the placeholder setting is assigned to. If not specified - default device will be used.
|
|
60
|
+
|
|
61
|
+
<table>
|
|
62
|
+
<thead></thead>
|
|
63
|
+
<tbody>
|
|
64
|
+
<tr>
|
|
65
|
+
<td>Aliases</td>
|
|
66
|
+
<td>None</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td>Required?</td>
|
|
70
|
+
<td>false</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td>Position?</td>
|
|
74
|
+
<td>Named</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>Default Value</td>
|
|
78
|
+
<td></td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>Accept Pipeline Input?</td>
|
|
82
|
+
<td>false</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>Accept Wildcard Characters?</td>
|
|
86
|
+
<td>false</td>
|
|
87
|
+
</tr>
|
|
88
|
+
</tbody>
|
|
89
|
+
</table>
|
|
90
|
+
|
|
91
|
+
### -FinalLayout <switch>
|
|
92
|
+
|
|
93
|
+
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
|
|
94
|
+
|
|
95
|
+
<table>
|
|
96
|
+
<thead></thead>
|
|
97
|
+
<tbody>
|
|
98
|
+
<tr>
|
|
99
|
+
<td>Aliases</td>
|
|
100
|
+
<td>None</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td>Required?</td>
|
|
104
|
+
<td>false</td>
|
|
105
|
+
</tr>
|
|
106
|
+
<tr>
|
|
107
|
+
<td>Position?</td>
|
|
108
|
+
<td>Named</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td>Default Value</td>
|
|
112
|
+
<td></td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr>
|
|
115
|
+
<td>Accept Pipeline Input?</td>
|
|
116
|
+
<td>false</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>Accept Wildcard Characters?</td>
|
|
120
|
+
<td>false</td>
|
|
121
|
+
</tr>
|
|
122
|
+
</tbody>
|
|
123
|
+
</table>
|
|
124
|
+
|
|
125
|
+
### -Id <string>
|
|
126
|
+
|
|
127
|
+
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
128
|
+
|
|
129
|
+
<table>
|
|
130
|
+
<thead></thead>
|
|
131
|
+
<tbody>
|
|
132
|
+
<tr>
|
|
133
|
+
<td>Aliases</td>
|
|
134
|
+
<td>None</td>
|
|
135
|
+
</tr>
|
|
136
|
+
<tr>
|
|
137
|
+
<td>Required?</td>
|
|
138
|
+
<td>true</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td>Position?</td>
|
|
142
|
+
<td>Named</td>
|
|
143
|
+
</tr>
|
|
144
|
+
<tr>
|
|
145
|
+
<td>Default Value</td>
|
|
146
|
+
<td></td>
|
|
147
|
+
</tr>
|
|
148
|
+
<tr>
|
|
149
|
+
<td>Accept Pipeline Input?</td>
|
|
150
|
+
<td>false</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td>Accept Wildcard Characters?</td>
|
|
154
|
+
<td></td>
|
|
155
|
+
</tr>
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
|
|
159
|
+
### -Instance <PlaceholderDefinition>
|
|
160
|
+
|
|
161
|
+
Placeholder setting definition to be added to the item
|
|
162
|
+
|
|
163
|
+
<table>
|
|
164
|
+
<thead></thead>
|
|
165
|
+
<tbody>
|
|
166
|
+
<tr>
|
|
167
|
+
<td>Aliases</td>
|
|
168
|
+
<td>PlaceholderSetting</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td>Required?</td>
|
|
172
|
+
<td>true</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td>Position?</td>
|
|
176
|
+
<td>Named</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<td>Default Value</td>
|
|
180
|
+
<td></td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td>Accept Pipeline Input?</td>
|
|
184
|
+
<td>false</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td>Accept Wildcard Characters?</td>
|
|
188
|
+
<td>false</td>
|
|
189
|
+
</tr>
|
|
190
|
+
</tbody>
|
|
191
|
+
</table>
|
|
192
|
+
|
|
193
|
+
### -Item <Item>
|
|
194
|
+
|
|
195
|
+
The item to be processed.
|
|
196
|
+
|
|
197
|
+
<table>
|
|
198
|
+
<thead></thead>
|
|
199
|
+
<tbody>
|
|
200
|
+
<tr>
|
|
201
|
+
<td>Aliases</td>
|
|
202
|
+
<td>None</td>
|
|
203
|
+
</tr>
|
|
204
|
+
<tr>
|
|
205
|
+
<td>Required?</td>
|
|
206
|
+
<td>true</td>
|
|
207
|
+
</tr>
|
|
208
|
+
<tr>
|
|
209
|
+
<td>Position?</td>
|
|
210
|
+
<td>0</td>
|
|
211
|
+
</tr>
|
|
212
|
+
<tr>
|
|
213
|
+
<td>Default Value</td>
|
|
214
|
+
<td></td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr>
|
|
217
|
+
<td>Accept Pipeline Input?</td>
|
|
218
|
+
<td>true (ByValue, ByPropertyName)</td>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>Accept Wildcard Characters?</td>
|
|
222
|
+
<td>false</td>
|
|
223
|
+
</tr>
|
|
224
|
+
</tbody>
|
|
225
|
+
</table>
|
|
226
|
+
|
|
227
|
+
### -Key <string>
|
|
228
|
+
|
|
229
|
+
The key for this placeholder setting - if not specified the value provided in the placeholder setting definition specified in the Instance parameter will be used.
|
|
230
|
+
|
|
231
|
+
<table>
|
|
232
|
+
<thead></thead>
|
|
233
|
+
<tbody>
|
|
234
|
+
<tr>
|
|
235
|
+
<td>Aliases</td>
|
|
236
|
+
<td>None</td>
|
|
237
|
+
</tr>
|
|
238
|
+
<tr>
|
|
239
|
+
<td>Required?</td>
|
|
240
|
+
<td>false</td>
|
|
241
|
+
</tr>
|
|
242
|
+
<tr>
|
|
243
|
+
<td>Position?</td>
|
|
244
|
+
<td>Named</td>
|
|
245
|
+
</tr>
|
|
246
|
+
<tr>
|
|
247
|
+
<td>Default Value</td>
|
|
248
|
+
<td></td>
|
|
249
|
+
</tr>
|
|
250
|
+
<tr>
|
|
251
|
+
<td>Accept Pipeline Input?</td>
|
|
252
|
+
<td>false</td>
|
|
253
|
+
</tr>
|
|
254
|
+
<tr>
|
|
255
|
+
<td>Accept Wildcard Characters?</td>
|
|
256
|
+
<td>false</td>
|
|
257
|
+
</tr>
|
|
258
|
+
</tbody>
|
|
259
|
+
</table>
|
|
260
|
+
|
|
261
|
+
### -Language <string[]>
|
|
262
|
+
|
|
263
|
+
Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
|
|
264
|
+
|
|
265
|
+
<table>
|
|
266
|
+
<thead></thead>
|
|
267
|
+
<tbody>
|
|
268
|
+
<tr>
|
|
269
|
+
<td>Aliases</td>
|
|
270
|
+
<td>Languages</td>
|
|
271
|
+
</tr>
|
|
272
|
+
<tr>
|
|
273
|
+
<td>Required?</td>
|
|
274
|
+
<td>false</td>
|
|
275
|
+
</tr>
|
|
276
|
+
<tr>
|
|
277
|
+
<td>Position?</td>
|
|
278
|
+
<td>Named</td>
|
|
279
|
+
</tr>
|
|
280
|
+
<tr>
|
|
281
|
+
<td>Default Value</td>
|
|
282
|
+
<td></td>
|
|
283
|
+
</tr>
|
|
284
|
+
<tr>
|
|
285
|
+
<td>Accept Pipeline Input?</td>
|
|
286
|
+
<td>false</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td>Accept Wildcard Characters?</td>
|
|
290
|
+
<td>false</td>
|
|
291
|
+
</tr>
|
|
292
|
+
</tbody>
|
|
293
|
+
</table>
|
|
294
|
+
|
|
295
|
+
### -MetaDataItemId <string>
|
|
296
|
+
|
|
297
|
+
The metadata item Id for this placeholder setting - if not specified the value provided in the placeholder setting definition specified in the Instance parameter will be used.
|
|
298
|
+
|
|
299
|
+
<table>
|
|
300
|
+
<thead></thead>
|
|
301
|
+
<tbody>
|
|
302
|
+
<tr>
|
|
303
|
+
<td>Aliases</td>
|
|
304
|
+
<td>None</td>
|
|
305
|
+
</tr>
|
|
306
|
+
<tr>
|
|
307
|
+
<td>Required?</td>
|
|
308
|
+
<td>false</td>
|
|
309
|
+
</tr>
|
|
310
|
+
<tr>
|
|
311
|
+
<td>Position?</td>
|
|
312
|
+
<td>Named</td>
|
|
313
|
+
</tr>
|
|
314
|
+
<tr>
|
|
315
|
+
<td>Default Value</td>
|
|
316
|
+
<td></td>
|
|
317
|
+
</tr>
|
|
318
|
+
<tr>
|
|
319
|
+
<td>Accept Pipeline Input?</td>
|
|
320
|
+
<td>false</td>
|
|
321
|
+
</tr>
|
|
322
|
+
<tr>
|
|
323
|
+
<td>Accept Wildcard Characters?</td>
|
|
324
|
+
<td>false</td>
|
|
325
|
+
</tr>
|
|
326
|
+
</tbody>
|
|
327
|
+
</table>
|
|
328
|
+
|
|
329
|
+
### -Path <string>
|
|
330
|
+
|
|
331
|
+
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
332
|
+
|
|
333
|
+
<table>
|
|
334
|
+
<thead></thead>
|
|
335
|
+
<tbody>
|
|
336
|
+
<tr>
|
|
337
|
+
<td>Aliases</td>
|
|
338
|
+
<td>FullName, FileName</td>
|
|
339
|
+
</tr>
|
|
340
|
+
<tr>
|
|
341
|
+
<td>Required?</td>
|
|
342
|
+
<td>true</td>
|
|
343
|
+
</tr>
|
|
344
|
+
<tr>
|
|
345
|
+
<td>Position?</td>
|
|
346
|
+
<td>0</td>
|
|
347
|
+
</tr>
|
|
348
|
+
<tr>
|
|
349
|
+
<td>Default Value</td>
|
|
350
|
+
<td></td>
|
|
351
|
+
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<td>Accept Pipeline Input?</td>
|
|
354
|
+
<td>false</td>
|
|
355
|
+
</tr>
|
|
356
|
+
<tr>
|
|
357
|
+
<td>Accept Wildcard Characters?</td>
|
|
358
|
+
<td>false</td>
|
|
359
|
+
</tr>
|
|
360
|
+
</tbody>
|
|
361
|
+
</table>
|
|
362
|
+
|
|
363
|
+
## Inputs
|
|
364
|
+
|
|
365
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
366
|
+
|
|
367
|
+
* Sitecore.Data.Items.Item
|
|
368
|
+
|
|
369
|
+
## Outputs
|
|
370
|
+
|
|
371
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
372
|
+
|
|
373
|
+
* System.Void
|
|
374
|
+
|
|
375
|
+
## Notes
|
|
376
|
+
|
|
377
|
+
Help Author: Adam Najmanowicz, Michael West, Alex Washtell
|
|
378
|
+
|
|
379
|
+
## Examples
|
|
380
|
+
|
|
381
|
+
### EXAMPLE 1
|
|
382
|
+
|
|
383
|
+
Create item defining placeholder setting and add to an item
|
|
384
|
+
|
|
385
|
+
```powershell
|
|
386
|
+
$placeholderSetting = gi "master:\layout\Placeholder Settings\content" | New-PlaceholderSetting -Key "content"
|
|
387
|
+
$item = gi master:\content\Home
|
|
388
|
+
# Add the placeholder setting to the item
|
|
389
|
+
Add-PlaceholderSetting -Item $item -Instance $placeholderSetting
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### EXAMPLE 2
|
|
393
|
+
|
|
394
|
+
Create item defining placeholder setting and add to an item, overriding the key
|
|
395
|
+
|
|
396
|
+
```powershell
|
|
397
|
+
$placeholderSetting = gi "master:\layout\Placeholder Settings\content" | New-PlaceholderSetting -Key "content"
|
|
398
|
+
# find item you want the placeholder setting added to
|
|
399
|
+
$item = gi master:\content\Home
|
|
400
|
+
# Add the placeholder setting to the item
|
|
401
|
+
Add-PlaceholderSetting -Item $item -Instance $placeholderSetting -Key "content-override"
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
## Related Topics
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
* <a href='https://github.com/SitecorePowerShell/Console/' target='_blank'>https://github.com/SitecorePowerShell/Console/</a><br/>
|
|
408
|
+
* [Get-PlaceholderSetting](get-placeholdersetting.md)
|
|
409
|
+
* [New-PlaceholderSetting](new-placeholdersetting.md)
|
|
410
|
+
* [Remove-PlaceholderSetting](remove-placeholdersetting.md)
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Add-Rendering
|
|
2
|
+
|
|
3
|
+
Adds a rendering to a chosen device for the presentation of an item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Add-Rendering [-Item] <Item> -Instance <RenderingDefinition> [-Parameter <Hashtable>] -PlaceHolder <String> [-DataSource <String>] [-Index <Int32>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>] [-PassThru]
|
|
9
|
+
|
|
10
|
+
Add-Rendering [-Path] <String> -Instance <RenderingDefinition> [-Parameter <Hashtable>] -PlaceHolder <String> [-DataSource <String>] [-Index <Int32>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>] [-PassThru]
|
|
11
|
+
|
|
12
|
+
Add-Rendering -Id <String> [-Database <String>] -Instance <RenderingDefinition> [-Parameter <Hashtable>] -PlaceHolder <String> [-DataSource <String>] [-Index <Int32>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>] [-PassThru]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Detailed Description
|
|
16
|
+
|
|
17
|
+
Adds a rendering to a chosen device for the presentation of an item.
|
|
18
|
+
|
|
19
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### -Instance <RenderingDefinition>
|
|
24
|
+
|
|
25
|
+
Rendering definition to be added to the item
|
|
26
|
+
|
|
27
|
+
| Aliases | |
|
|
28
|
+
| :--- | :--- |
|
|
29
|
+
| Required? | true |
|
|
30
|
+
| Position? | named |
|
|
31
|
+
| Default Value | |
|
|
32
|
+
| Accept Pipeline Input? | false |
|
|
33
|
+
| Accept Wildcard Characters? | false |
|
|
34
|
+
|
|
35
|
+
### -Parameter <Hashtable>
|
|
36
|
+
|
|
37
|
+
Rendering Parameters to be overriden on the Rendering that is being updated - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
|
|
38
|
+
|
|
39
|
+
| Aliases | |
|
|
40
|
+
| :--- | :--- |
|
|
41
|
+
| Required? | false |
|
|
42
|
+
| Position? | named |
|
|
43
|
+
| Default Value | |
|
|
44
|
+
| Accept Pipeline Input? | false |
|
|
45
|
+
| Accept Wildcard Characters? | false |
|
|
46
|
+
|
|
47
|
+
### -PlaceHolder <String>
|
|
48
|
+
|
|
49
|
+
Placeholder path the Rendering should be added to - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
|
|
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
|
+
### -DataSource <String>
|
|
60
|
+
|
|
61
|
+
Data source of the Rendering - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
|
|
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
|
+
### -Index <Int32>
|
|
72
|
+
|
|
73
|
+
Index at which the Rendering should be inserted. If not provided the rendering will be appended at the end of the list.
|
|
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
|
+
### -Device <DeviceItem>
|
|
84
|
+
|
|
85
|
+
Device the rendering is assigned to. If not specified - default device will be used.
|
|
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
|
+
### -FinalLayout <SwitchParameter>
|
|
96
|
+
|
|
97
|
+
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
|
|
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
|
+
### -Language <String\[\]>
|
|
108
|
+
|
|
109
|
+
| Aliases | |
|
|
110
|
+
| :--- | :--- |
|
|
111
|
+
| Required? | false |
|
|
112
|
+
| Position? | named |
|
|
113
|
+
| Default Value | |
|
|
114
|
+
| Accept Pipeline Input? | false |
|
|
115
|
+
| Accept Wildcard Characters? | false |
|
|
116
|
+
|
|
117
|
+
### -Item <Item>
|
|
118
|
+
|
|
119
|
+
The item to be processed.
|
|
120
|
+
|
|
121
|
+
| Aliases | |
|
|
122
|
+
| :--- | :--- |
|
|
123
|
+
| Required? | true |
|
|
124
|
+
| Position? | 1 |
|
|
125
|
+
| Default Value | |
|
|
126
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
127
|
+
| Accept Wildcard Characters? | false |
|
|
128
|
+
|
|
129
|
+
### -Path <String>
|
|
130
|
+
|
|
131
|
+
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
132
|
+
|
|
133
|
+
| Aliases | |
|
|
134
|
+
| :--- | :--- |
|
|
135
|
+
| Required? | true |
|
|
136
|
+
| Position? | 1 |
|
|
137
|
+
| Default Value | |
|
|
138
|
+
| Accept Pipeline Input? | false |
|
|
139
|
+
| Accept Wildcard Characters? | false |
|
|
140
|
+
|
|
141
|
+
### -Id <String>
|
|
142
|
+
|
|
143
|
+
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
144
|
+
|
|
145
|
+
| Aliases | |
|
|
146
|
+
| :--- | :--- |
|
|
147
|
+
| Required? | true |
|
|
148
|
+
| Position? | named |
|
|
149
|
+
| Default Value | |
|
|
150
|
+
| Accept Pipeline Input? | false |
|
|
151
|
+
| Accept Wildcard Characters? | false |
|
|
152
|
+
|
|
153
|
+
### -Database <String>
|
|
154
|
+
|
|
155
|
+
Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
156
|
+
|
|
157
|
+
| Aliases | |
|
|
158
|
+
| :--- | :--- |
|
|
159
|
+
| Required? | false |
|
|
160
|
+
| Position? | named |
|
|
161
|
+
| Default Value | |
|
|
162
|
+
| Accept Pipeline Input? | false |
|
|
163
|
+
| Accept Wildcard Characters? | false |
|
|
164
|
+
|
|
165
|
+
### -PassThru <SwitchParameter>
|
|
166
|
+
|
|
167
|
+
| Aliases | |
|
|
168
|
+
| :--- | :--- |
|
|
169
|
+
| Required? | false |
|
|
170
|
+
| Position? | named |
|
|
171
|
+
| Default Value | |
|
|
172
|
+
| Accept Pipeline Input? | false |
|
|
173
|
+
| Accept Wildcard Characters? | false |
|
|
174
|
+
|
|
175
|
+
## Inputs
|
|
176
|
+
|
|
177
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
178
|
+
|
|
179
|
+
* Sitecore.Data.Items.Item
|
|
180
|
+
|
|
181
|
+
## Outputs
|
|
182
|
+
|
|
183
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
184
|
+
|
|
185
|
+
* System.Void
|
|
186
|
+
|
|
187
|
+
## Notes
|
|
188
|
+
|
|
189
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
190
|
+
|
|
191
|
+
## Examples
|
|
192
|
+
|
|
193
|
+
### EXAMPLE 1
|
|
194
|
+
|
|
195
|
+
Find item defining rendering and create rendering definition.
|
|
196
|
+
|
|
197
|
+
```powershell
|
|
198
|
+
# Find the rendering item and convert to a rendering
|
|
199
|
+
$renderingPath = "/sitecore/layout/Renderings/Feature/Experience Accelerator/Page Content/Page Content"
|
|
200
|
+
$renderingItem = Get-Item -Database "master" -Path $renderingPath | New-Rendering -Placeholder "main"
|
|
201
|
+
# Find the item to receive the new rendering
|
|
202
|
+
$item = Get-Item -Path "master:\content\Training\Playground\play1\Home"
|
|
203
|
+
# Add the rendering to the item
|
|
204
|
+
Add-Rendering -Item $item -PlaceHolder "main" -Instance $renderingItem -Parameter @{ "Reset Caching Options" = "1" } -FinalLayout
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Related Topics
|
|
208
|
+
|
|
209
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
210
|
+
* [New-Rendering](new-rendering.md)
|
|
211
|
+
* [Set-Rendering](set-rendering.md)
|
|
212
|
+
* [Get-Rendering](get-rendering.md)
|
|
213
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
214
|
+
* [Remove-Rendering](remove-rendering.md)
|
|
215
|
+
* [Get-Layout](get-layout.md)
|
|
216
|
+
* [Set-Layout](set-layout.md)
|
|
217
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Add-RoleMember
|
|
2
|
+
|
|
3
|
+
Adds one or more Sitecore users to the specified role.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Add-RoleMember \[-Identity\] <AccountIdentity> -Members <AccountIdentity\[\]>
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Add-RoleMember command assigns Sitecore users as members of the specified 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 2
|
|
69
|
+
|
|
70
|
+
```powershell
|
|
71
|
+
PS master:\> Add-RoleMember -Identity developer -Members "michael","adam","mike"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### EXAMPLE 2
|
|
75
|
+
|
|
76
|
+
The following adds all users of a given domain to the Developer role.
|
|
77
|
+
|
|
78
|
+
```powershell
|
|
79
|
+
$users = Get-User -Filter * | Where-Object { @("ad1","ad2") -contains $_.Domain }
|
|
80
|
+
Add-RoleMember -Identity "sitecore\Developer" -Members $users
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Related Topics
|
|
84
|
+
|
|
85
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
86
|
+
* [Get-RoleMember](get-rolemember.md)
|
|
87
|
+
* [Remove-RoleMember](remove-rolemember.md)
|
|
88
|
+
|