@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,248 @@
|
|
|
1
|
+
# Get-Rendering
|
|
2
|
+
|
|
3
|
+
Returns a RenderingDefinition for an item using the filtering parameters.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Get-Rendering -Item <Item> [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
9
|
+
|
|
10
|
+
Get-Rendering -Item <Item> -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
11
|
+
|
|
12
|
+
Get-Rendering -Item <Item> -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
13
|
+
|
|
14
|
+
Get-Rendering -Path <String> [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
15
|
+
|
|
16
|
+
Get-Rendering -Path <String> -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
17
|
+
|
|
18
|
+
Get-Rendering -Path <String> -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
19
|
+
|
|
20
|
+
Get-Rendering [-Id <String>] [-Database <String>] [-DataSource <String>] [-Rendering <Item>] [-Index <Int32>] [-PlaceHolder <String>] [-Parameter <Hashtable>] [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
21
|
+
|
|
22
|
+
Get-Rendering [-Id <String>] [-Database <String>] -Instance <RenderingDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
23
|
+
|
|
24
|
+
Get-Rendering [-Id <String>] [-Database <String>] -UniqueId <String> [-Device <DeviceItem>] [-FinalLayout] [-Language <String[]>]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Detailed Description
|
|
28
|
+
|
|
29
|
+
The Get-Rendering command returns a RenderingDefinition for an item using the filtering parameters.
|
|
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 returned.
|
|
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 returned.
|
|
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. Renderings at that place holder will be returned.
|
|
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 returned. 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 returned. The instance could 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 retrieved.
|
|
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 renderings will be retrieved.
|
|
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
|
+
* Sitecore.Layouts.RenderingDefinition
|
|
212
|
+
|
|
213
|
+
## Notes
|
|
214
|
+
|
|
215
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
216
|
+
|
|
217
|
+
## Examples
|
|
218
|
+
|
|
219
|
+
### EXAMPLE 1
|
|
220
|
+
|
|
221
|
+
Get all renderings for "Default" device, located in the any placeholder that has name in it or any of its sub-placeholders.
|
|
222
|
+
|
|
223
|
+
```powershell
|
|
224
|
+
Get-Item master:\content\home |
|
|
225
|
+
Get-Rendering -Placeholder "*main*" -Device (Get-LayoutDevice "Default")
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### EXAMPLE 2
|
|
229
|
+
|
|
230
|
+
The following example returns all renderings on the home page.
|
|
231
|
+
|
|
232
|
+
```powershell
|
|
233
|
+
$item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
234
|
+
$defaultLayout = Get-LayoutDevice "Default"
|
|
235
|
+
Get-Rendering -Item $item -Device $defaultLayout -FinalLayout
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Related Topics
|
|
239
|
+
|
|
240
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
241
|
+
* [Add-Rendering](add-rendering.md)
|
|
242
|
+
* [New-Rendering](new-rendering.md)
|
|
243
|
+
* [Set-Rendering](set-rendering.md)
|
|
244
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
245
|
+
* [Remove-Rendering](remove-rendering.md)
|
|
246
|
+
* [Get-Layout](get-layout.md)
|
|
247
|
+
* [Set-Layout](set-layout.md)
|
|
248
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Get-RenderingParameter
|
|
2
|
+
|
|
3
|
+
Gets the available rendering parameters found for a given rendering.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Get-RenderingParameter -Instance <RenderingDefinition> [-Name <String[]>]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
Gets the available rendering parameters found for a given 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
|
+
* IDictionary
|
|
54
|
+
|
|
55
|
+
## Notes
|
|
56
|
+
|
|
57
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE 1
|
|
62
|
+
|
|
63
|
+
The following gets all renderings for a given item and lists the available rendering parameters.
|
|
64
|
+
|
|
65
|
+
```powershell
|
|
66
|
+
$item = Get-Item -Path "master" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
67
|
+
|
|
68
|
+
foreach($itemRendering in Get-Rendering -Item $item -FinalLayout) {
|
|
69
|
+
Write-Host "Rendering UniqueId: $($itemRendering.UniqueId)"
|
|
70
|
+
Get-RenderingParameter -Rendering $itemRendering | Format-Table -Auto
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Related Topics
|
|
75
|
+
|
|
76
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
77
|
+
* [New-Rendering](new-rendering.md)
|
|
78
|
+
* [Set-Rendering](set-rendering.md)
|
|
79
|
+
* [Get-Rendering](get-rendering.md)
|
|
80
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
81
|
+
* [Remove-Rendering](remove-rendering.md)
|
|
82
|
+
* [Get-Layout](get-layout.md)
|
|
83
|
+
* [Set-Layout](set-layout.md)
|
|
84
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Get-Role
|
|
2
|
+
|
|
3
|
+
Returns one or more Sitecore roles using the specified criteria.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Role \[-Identity\] <AccountIdentity>
|
|
8
|
+
|
|
9
|
+
Get-Role -Filter <String>
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
The Get-Role command returns one or more Sitecore roles using the specified criteria.
|
|
14
|
+
|
|
15
|
+
The Identity parameter specifies the Sitecore role to get. You can specify a role by its local name or fully qualified name. You can also specify role object variable, such as $<role>.
|
|
16
|
+
|
|
17
|
+
To search for and retrieve more than one role, use the Filter parameter.
|
|
18
|
+
|
|
19
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### -Identity <AccountIdentity>
|
|
24
|
+
|
|
25
|
+
Specifies the Sitecore role by providing one of the following values.
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
Local Name
|
|
29
|
+
Example: developer
|
|
30
|
+
Fully Qualified Name
|
|
31
|
+
Example: sitecore\developer
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
| Aliases | |
|
|
35
|
+
| :--- | :--- |
|
|
36
|
+
| Required? | true |
|
|
37
|
+
| Position? | 1 |
|
|
38
|
+
| Default Value | |
|
|
39
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
40
|
+
| Accept Wildcard Characters? | false |
|
|
41
|
+
|
|
42
|
+
### -Filter <String>
|
|
43
|
+
|
|
44
|
+
Specifies a simple pattern to match Sitecore roles.
|
|
45
|
+
|
|
46
|
+
Examples: The following examples show how to use the filter syntax.
|
|
47
|
+
|
|
48
|
+
To get all the roles, use the asterisk wildcard: Get-Role -Filter \*
|
|
49
|
+
|
|
50
|
+
To get all the roles in a domain use the following command: Get-Role -Filter "sitecore\*"
|
|
51
|
+
|
|
52
|
+
| Aliases | |
|
|
53
|
+
| :--- | :--- |
|
|
54
|
+
| Required? | true |
|
|
55
|
+
| Position? | named |
|
|
56
|
+
| Default Value | |
|
|
57
|
+
| Accept Pipeline Input? | false |
|
|
58
|
+
| Accept Wildcard Characters? | false |
|
|
59
|
+
|
|
60
|
+
## Inputs
|
|
61
|
+
|
|
62
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
63
|
+
|
|
64
|
+
* System.String
|
|
65
|
+
|
|
66
|
+
Represents the identity of a role.
|
|
67
|
+
|
|
68
|
+
## Outputs
|
|
69
|
+
|
|
70
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
71
|
+
|
|
72
|
+
* Sitecore.Security.Accounts.Role
|
|
73
|
+
|
|
74
|
+
Returns one or more roles.
|
|
75
|
+
|
|
76
|
+
## Notes
|
|
77
|
+
|
|
78
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
79
|
+
|
|
80
|
+
## Examples
|
|
81
|
+
|
|
82
|
+
### EXAMPLE 1
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
PS master:\> Get-Role -Identity sitecore\developer
|
|
86
|
+
|
|
87
|
+
Name Domain IsEveryone
|
|
88
|
+
---- ------ ----------
|
|
89
|
+
sitecore\developer sitecore False
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### EXAMPLE 2
|
|
93
|
+
|
|
94
|
+
```powershell
|
|
95
|
+
PS master:\> "sitecore\developer","sitecore\author" | Get-Role
|
|
96
|
+
|
|
97
|
+
Name Domain IsEveryone
|
|
98
|
+
---- ------ ----------
|
|
99
|
+
sitecore\author sitecore False
|
|
100
|
+
sitecore\developer sitecore False
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### EXAMPLE 3
|
|
104
|
+
|
|
105
|
+
```powershell
|
|
106
|
+
PS master:\> Get-Role -Filter sitecore\d*
|
|
107
|
+
|
|
108
|
+
Name Domain IsEveryone
|
|
109
|
+
---- ------ ----------
|
|
110
|
+
sitecore\Designer sitecore False
|
|
111
|
+
sitecore\Developer sitecore False
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### EXAMPLE 4
|
|
115
|
+
|
|
116
|
+
Expand the MemberOf property to see a list of roles that the specified role is a member.
|
|
117
|
+
|
|
118
|
+
```powershell
|
|
119
|
+
PS master:\> Get-Role -Identity sitecore\developer | Select-Object -ExpandProperty MemberOf
|
|
120
|
+
|
|
121
|
+
Name Domain IsEveryone
|
|
122
|
+
---- ------ ----------
|
|
123
|
+
sitecore\Sitecore Client Configuring sitecore False
|
|
124
|
+
sitecore\Sitecore Client Developing sitecore False
|
|
125
|
+
sitecore\Designer sitecore False
|
|
126
|
+
sitecore\Author sitecore False
|
|
127
|
+
sitecore\Sitecore Client Maintaining sitecore False
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Related Topics
|
|
131
|
+
|
|
132
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
133
|
+
* [Get-RoleMember](get-rolemember.md)
|
|
134
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Get-RoleMember
|
|
2
|
+
|
|
3
|
+
Returns the Sitecore users in the specified role.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-RoleMember \[-Identity\] <AccountIdentity> \[-Recurse\]
|
|
8
|
+
|
|
9
|
+
Get-RoleMember \[-Identity\] <AccountIdentity> \[-UsersOnly\] \[-Recurse\]
|
|
10
|
+
|
|
11
|
+
Get-RoleMember \[-Identity\] <AccountIdentity> \[-RolesOnly\] \[-Recurse\]
|
|
12
|
+
|
|
13
|
+
## Detailed Description
|
|
14
|
+
|
|
15
|
+
The Get-RoleMember command returns the Sitecore users in the specified role.
|
|
16
|
+
|
|
17
|
+
The Identity parameter specifies the Sitecore role to get. You can specify a role by its local name or fully qualified name.
|
|
18
|
+
|
|
19
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### -Identity <AccountIdentity>
|
|
24
|
+
|
|
25
|
+
Specifies the Sitecore role by providing one of the following values.
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
Local Name
|
|
29
|
+
Example: developer
|
|
30
|
+
Fully Qualified Name
|
|
31
|
+
Example: sitecore\developer
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
| Aliases | |
|
|
35
|
+
| :--- | :--- |
|
|
36
|
+
| Required? | true |
|
|
37
|
+
| Position? | 1 |
|
|
38
|
+
| Default Value | |
|
|
39
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
40
|
+
| Accept Wildcard Characters? | false |
|
|
41
|
+
|
|
42
|
+
### -Recurse <SwitchParameter>
|
|
43
|
+
|
|
44
|
+
| Aliases | |
|
|
45
|
+
| :--- | :--- |
|
|
46
|
+
| Required? | false |
|
|
47
|
+
| Position? | named |
|
|
48
|
+
| Default Value | |
|
|
49
|
+
| Accept Pipeline Input? | false |
|
|
50
|
+
| Accept Wildcard Characters? | false |
|
|
51
|
+
|
|
52
|
+
### -UsersOnly <SwitchParameter>
|
|
53
|
+
|
|
54
|
+
| Aliases | |
|
|
55
|
+
| :--- | :--- |
|
|
56
|
+
| Required? | false |
|
|
57
|
+
| Position? | named |
|
|
58
|
+
| Default Value | |
|
|
59
|
+
| Accept Pipeline Input? | false |
|
|
60
|
+
| Accept Wildcard Characters? | false |
|
|
61
|
+
|
|
62
|
+
### -RolesOnly <SwitchParameter>
|
|
63
|
+
|
|
64
|
+
| Aliases | |
|
|
65
|
+
| :--- | :--- |
|
|
66
|
+
| Required? | false |
|
|
67
|
+
| Position? | named |
|
|
68
|
+
| Default Value | |
|
|
69
|
+
| Accept Pipeline Input? | false |
|
|
70
|
+
| Accept Wildcard Characters? | false |
|
|
71
|
+
|
|
72
|
+
## Inputs
|
|
73
|
+
|
|
74
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
75
|
+
|
|
76
|
+
* System.String
|
|
77
|
+
|
|
78
|
+
Represents the identity of a role.
|
|
79
|
+
|
|
80
|
+
## Outputs
|
|
81
|
+
|
|
82
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
83
|
+
|
|
84
|
+
* Sitecore.Security.Accounts.User
|
|
85
|
+
|
|
86
|
+
Returns one or more users.
|
|
87
|
+
|
|
88
|
+
Sitecore.Security.Accounts.Role Returns one or more roles.
|
|
89
|
+
|
|
90
|
+
## Notes
|
|
91
|
+
|
|
92
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
93
|
+
|
|
94
|
+
## Examples
|
|
95
|
+
|
|
96
|
+
### EXAMPLE 1
|
|
97
|
+
|
|
98
|
+
```powershell
|
|
99
|
+
PS master:\> Get-RoleMember -Identity developer
|
|
100
|
+
|
|
101
|
+
Name Domain IsAdministrator IsAuthenticated
|
|
102
|
+
---- ------ --------------- ---------------
|
|
103
|
+
sitecore\michael sitecore False False
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### EXAMPLE 2
|
|
107
|
+
|
|
108
|
+
```powershell
|
|
109
|
+
PS master:\> Get-RoleMember -Identity author
|
|
110
|
+
|
|
111
|
+
Name Domain IsAdministrator IsAuthenticated
|
|
112
|
+
---- ------ --------------- ---------------
|
|
113
|
+
sitecore\michael sitecore False False
|
|
114
|
+
|
|
115
|
+
Domain : sitecore
|
|
116
|
+
IsEveryone : False
|
|
117
|
+
IsGlobal : False
|
|
118
|
+
AccountType : Role
|
|
119
|
+
Description : Role
|
|
120
|
+
DisplayName : sitecore\Developer
|
|
121
|
+
LocalName : sitecore\Developer
|
|
122
|
+
Name : sitecore\Developer
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Related Topics
|
|
126
|
+
|
|
127
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
128
|
+
* [Get-Role](get-role.md)
|
|
129
|
+
* [Remove-RoleMember](remove-rolemember.md)
|
|
130
|
+
* [Add-RoleMember](add-rolemember.md)
|
|
131
|
+
|