@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,63 @@
|
|
|
1
|
+
# Get-Package
|
|
2
|
+
|
|
3
|
+
Loads the package definition \(xml\) from the specified path.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Package \[-Path\] <String>
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Package commands loads the package definition \(xml\) and returns the package project. Package definitions can be created by PowerShell scripts using the Export-Package command \(without the -Zip parameter\)
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Path <String>
|
|
18
|
+
|
|
19
|
+
Path to the package file. If the path is not absolute the path needs to be relative to the Sitecore Package path defined in the "PackagePath" setting and later exposed in the Sitecore.Shell.Applications.Install.PackageProjectPath
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | true |
|
|
24
|
+
| Position? | 1 |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | false |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
32
|
+
|
|
33
|
+
* Sitecore.Install.PackageProject
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
### EXAMPLE
|
|
42
|
+
|
|
43
|
+
The following assumes that the project file is located in the default package directory.
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
PS master:\> Get-Package -Path myproject.xml
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Related Topics
|
|
50
|
+
|
|
51
|
+
* [Export-Package](export-package.md)
|
|
52
|
+
* Import-Package
|
|
53
|
+
* [Install-UpdatePackage](install-updatepackage.md)
|
|
54
|
+
* [New-ExplicitFileSource](new-explicitfilesource.md)
|
|
55
|
+
* [New-ExplicitItemSource](new-explicititemsource.md)
|
|
56
|
+
* [New-FileSource](new-filesource.md)
|
|
57
|
+
* [New-ItemSource](new-itemsource.md)
|
|
58
|
+
* [New-Package](new-package.md)
|
|
59
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
60
|
+
* [https://blog.najmanowicz.com/2011/12/19/continuous-deployment-in-sitecore-with-powershell/](https://blog.najmanowicz.com/2011/12/19/continuous-deployment-in-sitecore-with-powershell/)
|
|
61
|
+
* [https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae](https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae)
|
|
62
|
+
* [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
|
|
63
|
+
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
# Get-PlaceholderSetting
|
|
2
|
+
|
|
3
|
+
The Get-PlaceholderSetting command returns PlaceholderSettingDefinition(s) for an item using the filtering parameters.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Get-PlaceholderSetting -Item <Item> [-Key <string>] [-PlaceholderSetting <Item>] [-Index <int>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
9
|
+
|
|
10
|
+
Get-PlaceholderSetting -Item <Item> -Instance <PlaceholderDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
11
|
+
|
|
12
|
+
Get-PlaceholderSetting -Item <Item> -UniqueId <string> [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
13
|
+
|
|
14
|
+
Get-PlaceholderSetting -Path <string> [-Key <string>] [-PlaceholderSetting <Item>] [-Index <int>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
15
|
+
|
|
16
|
+
Get-PlaceholderSetting -Path <string> -Instance <PlaceholderDefinition> [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
17
|
+
|
|
18
|
+
Get-PlaceholderSetting -Path <string> -UniqueId <string> [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
19
|
+
|
|
20
|
+
Get-PlaceholderSetting [-Id <string>] [-Database <string>] [-Key <string>] [-PlaceholderSetting <Item>] [-Index <int>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
21
|
+
|
|
22
|
+
Get-PlaceholderSetting -Instance <PlaceholderDefinition> [-Id <string>] [-Database <string>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
23
|
+
|
|
24
|
+
Get-PlaceholderSetting -UniqueId <string> [-Id <string>] [-Database <string>] [-Device <DeviceItem>] [-FinalLayout] [-Language <string[]>]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Detailed Description
|
|
28
|
+
|
|
29
|
+
The Get-PlaceholderSetting command returns PlaceholderSettingDefinition(s) 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
|
+
### -Database <string>
|
|
36
|
+
|
|
37
|
+
Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
38
|
+
|
|
39
|
+
<table>
|
|
40
|
+
<thead></thead>
|
|
41
|
+
<tbody>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>Aliases</td>
|
|
44
|
+
<td>None</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>Required?</td>
|
|
48
|
+
<td>false</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>Position?</td>
|
|
52
|
+
<td>Named</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td>Default Value</td>
|
|
56
|
+
<td></td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td>Accept Pipeline Input?</td>
|
|
60
|
+
<td>false</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>Accept Wildcard Characters?</td>
|
|
64
|
+
<td>false</td>
|
|
65
|
+
</tr>
|
|
66
|
+
</tbody>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
### -Device <DeviceItem>
|
|
70
|
+
|
|
71
|
+
Device for which the placeholder settings will be retrieved.
|
|
72
|
+
|
|
73
|
+
<table>
|
|
74
|
+
<thead></thead>
|
|
75
|
+
<tbody>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>Aliases</td>
|
|
78
|
+
<td>None</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>Required?</td>
|
|
82
|
+
<td>false</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>Position?</td>
|
|
86
|
+
<td>Named</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<td>Default Value</td>
|
|
90
|
+
<td></td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td>Accept Pipeline Input?</td>
|
|
94
|
+
<td>false</td>
|
|
95
|
+
</tr>
|
|
96
|
+
<tr>
|
|
97
|
+
<td>Accept Wildcard Characters?</td>
|
|
98
|
+
<td>false</td>
|
|
99
|
+
</tr>
|
|
100
|
+
</tbody>
|
|
101
|
+
</table>
|
|
102
|
+
|
|
103
|
+
### -FinalLayout <switch>
|
|
104
|
+
|
|
105
|
+
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
|
|
106
|
+
|
|
107
|
+
<table>
|
|
108
|
+
<thead></thead>
|
|
109
|
+
<tbody>
|
|
110
|
+
<tr>
|
|
111
|
+
<td>Aliases</td>
|
|
112
|
+
<td>None</td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr>
|
|
115
|
+
<td>Required?</td>
|
|
116
|
+
<td>false</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>Position?</td>
|
|
120
|
+
<td>Named</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td>Default Value</td>
|
|
124
|
+
<td></td>
|
|
125
|
+
</tr>
|
|
126
|
+
<tr>
|
|
127
|
+
<td>Accept Pipeline Input?</td>
|
|
128
|
+
<td>false</td>
|
|
129
|
+
</tr>
|
|
130
|
+
<tr>
|
|
131
|
+
<td>Accept Wildcard Characters?</td>
|
|
132
|
+
<td>false</td>
|
|
133
|
+
</tr>
|
|
134
|
+
</tbody>
|
|
135
|
+
</table>
|
|
136
|
+
|
|
137
|
+
### -Id <string>
|
|
138
|
+
|
|
139
|
+
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
140
|
+
|
|
141
|
+
<table>
|
|
142
|
+
<thead></thead>
|
|
143
|
+
<tbody>
|
|
144
|
+
<tr>
|
|
145
|
+
<td>Aliases</td>
|
|
146
|
+
<td>None</td>
|
|
147
|
+
</tr>
|
|
148
|
+
<tr>
|
|
149
|
+
<td>Required?</td>
|
|
150
|
+
<td>false</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td>Position?</td>
|
|
154
|
+
<td>Named</td>
|
|
155
|
+
</tr>
|
|
156
|
+
<tr>
|
|
157
|
+
<td>Default Value</td>
|
|
158
|
+
<td></td>
|
|
159
|
+
</tr>
|
|
160
|
+
<tr>
|
|
161
|
+
<td>Accept Pipeline Input?</td>
|
|
162
|
+
<td>false</td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr>
|
|
165
|
+
<td>Accept Wildcard Characters?</td>
|
|
166
|
+
<td>false</td>
|
|
167
|
+
</tr>
|
|
168
|
+
</tbody>
|
|
169
|
+
</table>
|
|
170
|
+
|
|
171
|
+
### -Index <int>
|
|
172
|
+
|
|
173
|
+
Index at which the placeholder setting exists in the layout. The placeholder setting at that index will be returned.
|
|
174
|
+
|
|
175
|
+
<table>
|
|
176
|
+
<thead></thead>
|
|
177
|
+
<tbody>
|
|
178
|
+
<tr>
|
|
179
|
+
<td>Aliases</td>
|
|
180
|
+
<td>None</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td>Required?</td>
|
|
184
|
+
<td>false</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td>Position?</td>
|
|
188
|
+
<td>Named</td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td>Default Value</td>
|
|
192
|
+
<td></td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td>Accept Pipeline Input?</td>
|
|
196
|
+
<td>false</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td>Accept Wildcard Characters?</td>
|
|
200
|
+
<td>false</td>
|
|
201
|
+
</tr>
|
|
202
|
+
</tbody>
|
|
203
|
+
</table>
|
|
204
|
+
|
|
205
|
+
### -Instance <PlaceholderDefinition>
|
|
206
|
+
|
|
207
|
+
Specific instance of placeholder setting that should be returned. The instance could earlier be obtained through e.g. use of Get-PlaceholderSetting.
|
|
208
|
+
|
|
209
|
+
<table>
|
|
210
|
+
<thead></thead>
|
|
211
|
+
<tbody>
|
|
212
|
+
<tr>
|
|
213
|
+
<td>Aliases</td>
|
|
214
|
+
<td>None</td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr>
|
|
217
|
+
<td>Required?</td>
|
|
218
|
+
<td>true</td>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>Position?</td>
|
|
222
|
+
<td>Named</td>
|
|
223
|
+
</tr>
|
|
224
|
+
<tr>
|
|
225
|
+
<td>Default Value</td>
|
|
226
|
+
<td></td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr>
|
|
229
|
+
<td>Accept Pipeline Input?</td>
|
|
230
|
+
<td>false</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr>
|
|
233
|
+
<td>Accept Wildcard Characters?</td>
|
|
234
|
+
<td>false</td>
|
|
235
|
+
</tr>
|
|
236
|
+
</tbody>
|
|
237
|
+
</table>
|
|
238
|
+
|
|
239
|
+
### -Item <Item>
|
|
240
|
+
|
|
241
|
+
The item to be processed.
|
|
242
|
+
|
|
243
|
+
<table>
|
|
244
|
+
<thead></thead>
|
|
245
|
+
<tbody>
|
|
246
|
+
<tr>
|
|
247
|
+
<td>Aliases</td>
|
|
248
|
+
<td>None</td>
|
|
249
|
+
</tr>
|
|
250
|
+
<tr>
|
|
251
|
+
<td>Required?</td>
|
|
252
|
+
<td>true</td>
|
|
253
|
+
</tr>
|
|
254
|
+
<tr>
|
|
255
|
+
<td>Position?</td>
|
|
256
|
+
<td>Named</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr>
|
|
259
|
+
<td>Default Value</td>
|
|
260
|
+
<td></td>
|
|
261
|
+
</tr>
|
|
262
|
+
<tr>
|
|
263
|
+
<td>Accept Pipeline Input?</td>
|
|
264
|
+
<td>true (ByValue, ByPropertyName)</td>
|
|
265
|
+
</tr>
|
|
266
|
+
<tr>
|
|
267
|
+
<td>Accept Wildcard Characters?</td>
|
|
268
|
+
<td>false</td>
|
|
269
|
+
</tr>
|
|
270
|
+
</tbody>
|
|
271
|
+
</table>
|
|
272
|
+
|
|
273
|
+
### -Key <string>
|
|
274
|
+
|
|
275
|
+
Placeholder key filter - supports wildcards.
|
|
276
|
+
|
|
277
|
+
<table>
|
|
278
|
+
<thead></thead>
|
|
279
|
+
<tbody>
|
|
280
|
+
<tr>
|
|
281
|
+
<td>Aliases</td>
|
|
282
|
+
<td>None</td>
|
|
283
|
+
</tr>
|
|
284
|
+
<tr>
|
|
285
|
+
<td>Required?</td>
|
|
286
|
+
<td>false</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td>Position?</td>
|
|
290
|
+
<td>Named</td>
|
|
291
|
+
</tr>
|
|
292
|
+
<tr>
|
|
293
|
+
<td>Default Value</td>
|
|
294
|
+
<td></td>
|
|
295
|
+
</tr>
|
|
296
|
+
<tr>
|
|
297
|
+
<td>Accept Pipeline Input?</td>
|
|
298
|
+
<td>false</td>
|
|
299
|
+
</tr>
|
|
300
|
+
<tr>
|
|
301
|
+
<td>Accept Wildcard Characters?</td>
|
|
302
|
+
<td>true</td>
|
|
303
|
+
</tr>
|
|
304
|
+
</tbody>
|
|
305
|
+
</table>
|
|
306
|
+
|
|
307
|
+
### -Language <string[]>
|
|
308
|
+
|
|
309
|
+
Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
|
|
310
|
+
|
|
311
|
+
<table>
|
|
312
|
+
<thead></thead>
|
|
313
|
+
<tbody>
|
|
314
|
+
<tr>
|
|
315
|
+
<td>Aliases</td>
|
|
316
|
+
<td>Languages</td>
|
|
317
|
+
</tr>
|
|
318
|
+
<tr>
|
|
319
|
+
<td>Required?</td>
|
|
320
|
+
<td>false</td>
|
|
321
|
+
</tr>
|
|
322
|
+
<tr>
|
|
323
|
+
<td>Position?</td>
|
|
324
|
+
<td>Named</td>
|
|
325
|
+
</tr>
|
|
326
|
+
<tr>
|
|
327
|
+
<td>Default Value</td>
|
|
328
|
+
<td></td>
|
|
329
|
+
</tr>
|
|
330
|
+
<tr>
|
|
331
|
+
<td>Accept Pipeline Input?</td>
|
|
332
|
+
<td>false</td>
|
|
333
|
+
</tr>
|
|
334
|
+
<tr>
|
|
335
|
+
<td>Accept Wildcard Characters?</td>
|
|
336
|
+
<td>false</td>
|
|
337
|
+
</tr>
|
|
338
|
+
</tbody>
|
|
339
|
+
</table>
|
|
340
|
+
|
|
341
|
+
### -Path <string>
|
|
342
|
+
|
|
343
|
+
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
344
|
+
|
|
345
|
+
<table>
|
|
346
|
+
<thead></thead>
|
|
347
|
+
<tbody>
|
|
348
|
+
<tr>
|
|
349
|
+
<td>Aliases</td>
|
|
350
|
+
<td>FullName, FileName</td>
|
|
351
|
+
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<td>Required?</td>
|
|
354
|
+
<td>true</td>
|
|
355
|
+
</tr>
|
|
356
|
+
<tr>
|
|
357
|
+
<td>Position?</td>
|
|
358
|
+
<td>Named</td>
|
|
359
|
+
</tr>
|
|
360
|
+
<tr>
|
|
361
|
+
<td>Default Value</td>
|
|
362
|
+
<td></td>
|
|
363
|
+
</tr>
|
|
364
|
+
<tr>
|
|
365
|
+
<td>Accept Pipeline Input?</td>
|
|
366
|
+
<td>false</td>
|
|
367
|
+
</tr>
|
|
368
|
+
<tr>
|
|
369
|
+
<td>Accept Wildcard Characters?</td>
|
|
370
|
+
<td>false</td>
|
|
371
|
+
</tr>
|
|
372
|
+
</tbody>
|
|
373
|
+
</table>
|
|
374
|
+
|
|
375
|
+
### -PlaceholderSetting <Item>
|
|
376
|
+
|
|
377
|
+
Item representing the placeholder setting. If matching, the placeholder setting will be returned.
|
|
378
|
+
|
|
379
|
+
<table>
|
|
380
|
+
<thead></thead>
|
|
381
|
+
<tbody>
|
|
382
|
+
<tr>
|
|
383
|
+
<td>Aliases</td>
|
|
384
|
+
<td>None</td>
|
|
385
|
+
</tr>
|
|
386
|
+
<tr>
|
|
387
|
+
<td>Required?</td>
|
|
388
|
+
<td>false</td>
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<td>Position?</td>
|
|
392
|
+
<td>Named</td>
|
|
393
|
+
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td>Default Value</td>
|
|
396
|
+
<td></td>
|
|
397
|
+
</tr>
|
|
398
|
+
<tr>
|
|
399
|
+
<td>Accept Pipeline Input?</td>
|
|
400
|
+
<td>false</td>
|
|
401
|
+
</tr>
|
|
402
|
+
<tr>
|
|
403
|
+
<td>Accept Wildcard Characters?</td>
|
|
404
|
+
<td>false</td>
|
|
405
|
+
</tr>
|
|
406
|
+
</tbody>
|
|
407
|
+
</table>
|
|
408
|
+
|
|
409
|
+
### -UniqueId <string>
|
|
410
|
+
|
|
411
|
+
UniqueID of the placeholder setting to be retrieved.
|
|
412
|
+
|
|
413
|
+
<table>
|
|
414
|
+
<thead></thead>
|
|
415
|
+
<tbody>
|
|
416
|
+
<tr>
|
|
417
|
+
<td>Aliases</td>
|
|
418
|
+
<td>None</td>
|
|
419
|
+
</tr>
|
|
420
|
+
<tr>
|
|
421
|
+
<td>Required?</td>
|
|
422
|
+
<td>true</td>
|
|
423
|
+
</tr>
|
|
424
|
+
<tr>
|
|
425
|
+
<td>Position?</td>
|
|
426
|
+
<td>Named</td>
|
|
427
|
+
</tr>
|
|
428
|
+
<tr>
|
|
429
|
+
<td>Default Value</td>
|
|
430
|
+
<td></td>
|
|
431
|
+
</tr>
|
|
432
|
+
<tr>
|
|
433
|
+
<td>Accept Pipeline Input?</td>
|
|
434
|
+
<td>false</td>
|
|
435
|
+
</tr>
|
|
436
|
+
<tr>
|
|
437
|
+
<td>Accept Wildcard Characters?</td>
|
|
438
|
+
<td>false</td>
|
|
439
|
+
</tr>
|
|
440
|
+
</tbody>
|
|
441
|
+
</table>
|
|
442
|
+
|
|
443
|
+
## Inputs
|
|
444
|
+
|
|
445
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
446
|
+
|
|
447
|
+
* Sitecore.Data.Items.Item
|
|
448
|
+
|
|
449
|
+
## Outputs
|
|
450
|
+
|
|
451
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
452
|
+
|
|
453
|
+
* Sitecore.Layouts.PlaceholderDefinition
|
|
454
|
+
|
|
455
|
+
## Notes
|
|
456
|
+
|
|
457
|
+
Help Author: Adam Najmanowicz, Michael West, Alex Washtell
|
|
458
|
+
|
|
459
|
+
## Examples
|
|
460
|
+
|
|
461
|
+
### EXAMPLE 1
|
|
462
|
+
|
|
463
|
+
Get all placeholder settings for "Default" device, using any key matching the wildcard "content*"
|
|
464
|
+
|
|
465
|
+
```powershell
|
|
466
|
+
Get-Item master:\content\home | Get-PlaceholderSetting -Key "content*" -Device (Get-LayoutDevice "Default")
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
## Related Topics
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
* <a href='https://github.com/SitecorePowerShell/Console/' target='_blank'>https://github.com/SitecorePowerShell/Console/</a><br/>
|
|
473
|
+
* [Add-PlaceholderSetting](add-placeholdersetting.md)
|
|
474
|
+
* [New-PlaceholderSetting](new-placeholdersetting.md)
|
|
475
|
+
* [Remove-PlaceholderSetting](remove-placeholdersetting.md)
|
|
476
|
+
|
|
477
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Get-Preset
|
|
2
|
+
|
|
3
|
+
Returns a serialization preset for use with Export-Item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Preset \[\[-Name\] <String\[\]>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Preset command returns a serialization preset for use with Export-Item.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String\[\]>
|
|
18
|
+
|
|
19
|
+
Name of the serialization preset.
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | 1 |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | false |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
32
|
+
|
|
33
|
+
* Sitecore.Data.Serialization.Presets.IncludeEntry
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
### EXAMPLE
|
|
42
|
+
|
|
43
|
+
```powershell
|
|
44
|
+
PS master:\> Get-Preset -Name "PowerShell", "AssetsOptimiser" | ft PresetName, Database, Path -AutoSize
|
|
45
|
+
|
|
46
|
+
PresetName Database Path
|
|
47
|
+
---------- -------- ----
|
|
48
|
+
PowerShell core /sitecore/templates/Modules/PowerShell Console
|
|
49
|
+
PowerShell core /sitecore/system/Modules/PowerShell/Console Colors
|
|
50
|
+
PowerShell core /sitecore/system/Modules/PowerShell/Script Library
|
|
51
|
+
PowerShell core /sitecore/layout/Layouts/Applications/PowerShell Console
|
|
52
|
+
PowerShell core /sitecore/layout/Layouts/Applications/PowerShell ISE Sheer
|
|
53
|
+
PowerShell core /sitecore/layout/Layouts/Applications/PowerShell ISE
|
|
54
|
+
PowerShell core /sitecore/layout/Layouts/Applications/PowerShell ListView
|
|
55
|
+
PowerShell core /sitecore/content/Documents and Settings/All users/Start menu/Right/PowerShell Toolbox
|
|
56
|
+
PowerShell core /sitecore/content/Applications/PowerShell
|
|
57
|
+
PowerShell core /sitecore/content/Applications/Content Editor/Context Menues/Default/Context PowerShell Scripts
|
|
58
|
+
PowerShell master /sitecore/templates/Modules/PowerShell Console
|
|
59
|
+
PowerShell master /sitecore/system/Modules/PowerShell/Console Colors
|
|
60
|
+
PowerShell master /sitecore/system/Modules/PowerShell/Rules
|
|
61
|
+
PowerShell master /sitecore/system/Modules/PowerShell/Script Library
|
|
62
|
+
AssetsOptimiser master /sitecore/system/Modules/Optimiser
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Related Topics
|
|
66
|
+
|
|
67
|
+
* Serialize-Item
|
|
68
|
+
* Deserialize-Item
|
|
69
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
70
|
+
|