@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,171 @@
|
|
|
1
|
+
# New-ItemSource
|
|
2
|
+
|
|
3
|
+
Creates new Item source that can be added to a Sitecore package.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
New-ItemSource \[-Item <Item>\] \[-Name\] <String> \[\[-SkipVersions\]\] \[\[-Database\] <String>\] \[\[-Root\] <String>\] \[-InstallMode <Undefined \| Overwrite \| Merge \| Skip \| SideBySide>\] \[-MergeMode <Undefined \| Clear \| Append \| Merge>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
Creates new Item source that can be added to a Sitecore package. Item provided to it is added as well as its subitems.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Item <Item>
|
|
18
|
+
|
|
19
|
+
The item to be added as the root of the source.
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | named |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
### -Name <String>
|
|
30
|
+
|
|
31
|
+
Name of the item source.
|
|
32
|
+
|
|
33
|
+
| Aliases | |
|
|
34
|
+
| :--- | :--- |
|
|
35
|
+
| Required? | true |
|
|
36
|
+
| Position? | 1 |
|
|
37
|
+
| Default Value | |
|
|
38
|
+
| Accept Pipeline Input? | false |
|
|
39
|
+
| Accept Wildcard Characters? | false |
|
|
40
|
+
|
|
41
|
+
### -SkipVersions <SwitchParameter>
|
|
42
|
+
|
|
43
|
+
Add this parameter if you want to skip versions of the item from being included in the source and only include the version provided.
|
|
44
|
+
|
|
45
|
+
| Aliases | |
|
|
46
|
+
| :--- | :--- |
|
|
47
|
+
| Required? | false |
|
|
48
|
+
| Position? | 2 |
|
|
49
|
+
| Default Value | |
|
|
50
|
+
| Accept Pipeline Input? | false |
|
|
51
|
+
| Accept Wildcard Characters? | false |
|
|
52
|
+
|
|
53
|
+
### -Database <String>
|
|
54
|
+
|
|
55
|
+
Database containing the item to be added - can work with Language parameter to narrow the publication scope.
|
|
56
|
+
|
|
57
|
+
| Aliases | |
|
|
58
|
+
| :--- | :--- |
|
|
59
|
+
| Required? | false |
|
|
60
|
+
| Position? | 3 |
|
|
61
|
+
| Default Value | |
|
|
62
|
+
| Accept Pipeline Input? | true \(ByPropertyName\) |
|
|
63
|
+
| Accept Wildcard Characters? | false |
|
|
64
|
+
|
|
65
|
+
### -Root <String>
|
|
66
|
+
|
|
67
|
+
You can provide the Root as sitecore native path instead of specifying it through. Do not include Item in such case as Item will take priority over Root.
|
|
68
|
+
|
|
69
|
+
| Aliases | |
|
|
70
|
+
| :--- | :--- |
|
|
71
|
+
| Required? | false |
|
|
72
|
+
| Position? | 4 |
|
|
73
|
+
| Default Value | |
|
|
74
|
+
| Accept Pipeline Input? | false |
|
|
75
|
+
| Accept Wildcard Characters? | false |
|
|
76
|
+
|
|
77
|
+
### -InstallMode <InstallMode>
|
|
78
|
+
|
|
79
|
+
Specifies what installer should do if the item already exists. Possible values:
|
|
80
|
+
|
|
81
|
+
* Undefined - User will have to choose one of the below. But they probably don't really know what should be done so not a preferable option.
|
|
82
|
+
* Overwrite - All versions of the old item are removed and replaced with all versions of the new item. This option basically replaces the old item with new one.
|
|
83
|
+
* Merge - merge with existing item. How the item will be merged is defined with MergeMode parameter
|
|
84
|
+
* Skip - All versions remains unchanged. Other languages remains unchanged. All children remains unchanged.
|
|
85
|
+
* SideBySide - all new item will be created.
|
|
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
|
+
### -MergeMode <MergeMode>
|
|
96
|
+
|
|
97
|
+
Specifies what installer should do if the item already exists and InstallMode is specified as Merge. Possible values:
|
|
98
|
+
|
|
99
|
+
* Undefined - User will have to choose one of the below. But they probably don't really know what should be done so not a preferable option.
|
|
100
|
+
* Clear - All versions of the old item are removed and replaced with all versions of the new item. This option basically replaces the old item with new one. Other language versions \(those which are not in the package\) are removed but only for items which are in the package. All child items which are not in the package keep other language versions. All child items which are in the package are changed.
|
|
101
|
+
* Append - All versions of the new item are added on top of versions of the previous item. This option allows for further manual merge because all history is preserved, so user can see what was changed. Other languages remains unchanged. All child items which are not in the package keep other language versions. All child items which are in the package are changed.
|
|
102
|
+
* Merge - All versions with the same number in both packages are replaced with versions from installed package. All versions which are in the package but not in the target are added. All versions which are not in the package but are in the target remains unchanged. This option also preserves history, however it might overwrite some of the changes. Other languages remains unchanged. All child items which are in the package are changed.
|
|
103
|
+
|
|
104
|
+
| Aliases | |
|
|
105
|
+
| :--- | :--- |
|
|
106
|
+
| Required? | false |
|
|
107
|
+
| Position? | named |
|
|
108
|
+
| Default Value | |
|
|
109
|
+
| Accept Pipeline Input? | false |
|
|
110
|
+
| Accept Wildcard Characters? | false |
|
|
111
|
+
|
|
112
|
+
## Inputs
|
|
113
|
+
|
|
114
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
115
|
+
|
|
116
|
+
* Sitecore.Data.Items.Item
|
|
117
|
+
|
|
118
|
+
## Outputs
|
|
119
|
+
|
|
120
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
121
|
+
|
|
122
|
+
* Sitecore.Install.Items.ItemSource
|
|
123
|
+
|
|
124
|
+
## Notes
|
|
125
|
+
|
|
126
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
127
|
+
|
|
128
|
+
## Examples
|
|
129
|
+
|
|
130
|
+
### EXAMPLE
|
|
131
|
+
|
|
132
|
+
Following example creates a new package, adds content/home item to it and saves it in the Sitecore Package folder+ gives you an option to download the saved package.
|
|
133
|
+
|
|
134
|
+
```powershell
|
|
135
|
+
# Create package
|
|
136
|
+
$package = New-Package "Packing in Powerful Ways";
|
|
137
|
+
|
|
138
|
+
# Set package metadata
|
|
139
|
+
$package.Sources.Clear();
|
|
140
|
+
|
|
141
|
+
$package.Metadata.Author = "Adam Najmanowicz, Michael West";
|
|
142
|
+
$package.Metadata.Publisher = "Powerful Ways";
|
|
143
|
+
$package.Metadata.Version = "1.0";
|
|
144
|
+
$package.Metadata.Readme = 'This text will be visible to people installing your package'
|
|
145
|
+
|
|
146
|
+
# Add contnet/home to the package
|
|
147
|
+
$source = Get-Item 'master:\content\home' | New-ItemSource -Name 'Home Page' -InstallMode Overwrite
|
|
148
|
+
$package.Sources.Add($source);
|
|
149
|
+
|
|
150
|
+
# Save package
|
|
151
|
+
Export-Package -Project $package -Path "$($package.Name)-$($package.Metadata.Version).zip" -Zip
|
|
152
|
+
|
|
153
|
+
# Offer the user to download the package
|
|
154
|
+
Download-File "$SitecorePackageFolder\$($package.Name)-$($package.Metadata.Version).zip"
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Related Topics
|
|
158
|
+
|
|
159
|
+
* [Export-Package](export-package.md)
|
|
160
|
+
* [Get-Package](get-package.md)
|
|
161
|
+
* Import-Package
|
|
162
|
+
* [Install-UpdatePackage](install-updatepackage.md)
|
|
163
|
+
* [New-ExplicitFileSource](new-explicitfilesource.md)
|
|
164
|
+
* [New-ExplicitItemSource](new-explicititemsource.md)
|
|
165
|
+
* [New-FileSource](new-filesource.md)
|
|
166
|
+
* [New-Package](new-package.md)
|
|
167
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
168
|
+
* [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/)
|
|
169
|
+
* [https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae](https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae)
|
|
170
|
+
* [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
|
|
171
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# New-ItemWorkflowEvent
|
|
2
|
+
|
|
3
|
+
Creates new entry in the history store notifying of workflow state change.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
New-ItemWorkflowEvent \[-Item\] <Item> \[-OldState <String>\] \[-NewState <String>\] \[-Text <String>\] \[-Language <String\[\]>\]
|
|
8
|
+
|
|
9
|
+
New-ItemWorkflowEvent \[-Path\] <String> \[-OldState <String>\] \[-NewState <String>\] \[-Text <String>\] \[-Language <String\[\]>\]
|
|
10
|
+
|
|
11
|
+
New-ItemWorkflowEvent -Id <String> \[-Database <String>\] \[-OldState <String>\] \[-NewState <String>\] \[-Text <String>\] \[-Language <String\[\]>\]
|
|
12
|
+
|
|
13
|
+
## Detailed Description
|
|
14
|
+
|
|
15
|
+
Creates new entry in the history store notifying of workflow state change.
|
|
16
|
+
|
|
17
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
### -OldState <String>
|
|
22
|
+
|
|
23
|
+
Id of the old state. If not provided - current item workflow state will be used.
|
|
24
|
+
|
|
25
|
+
| Aliases | |
|
|
26
|
+
| :--- | :--- |
|
|
27
|
+
| Required? | false |
|
|
28
|
+
| Position? | named |
|
|
29
|
+
| Default Value | |
|
|
30
|
+
| Accept Pipeline Input? | false |
|
|
31
|
+
| Accept Wildcard Characters? | false |
|
|
32
|
+
|
|
33
|
+
### -NewState <String>
|
|
34
|
+
|
|
35
|
+
Id of the old state. If not provided - current item workflow state will be used.
|
|
36
|
+
|
|
37
|
+
| Aliases | |
|
|
38
|
+
| :--- | :--- |
|
|
39
|
+
| Required? | false |
|
|
40
|
+
| Position? | named |
|
|
41
|
+
| Default Value | |
|
|
42
|
+
| Accept Pipeline Input? | false |
|
|
43
|
+
| Accept Wildcard Characters? | false |
|
|
44
|
+
|
|
45
|
+
### -Text <String>
|
|
46
|
+
|
|
47
|
+
Action comment.
|
|
48
|
+
|
|
49
|
+
| Aliases | |
|
|
50
|
+
| :--- | :--- |
|
|
51
|
+
| Required? | false |
|
|
52
|
+
| Position? | named |
|
|
53
|
+
| Default Value | |
|
|
54
|
+
| Accept Pipeline Input? | false |
|
|
55
|
+
| Accept Wildcard Characters? | false |
|
|
56
|
+
|
|
57
|
+
### -Language <String\[\]>
|
|
58
|
+
|
|
59
|
+
Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
|
|
60
|
+
|
|
61
|
+
| Aliases | |
|
|
62
|
+
| :--- | :--- |
|
|
63
|
+
| Required? | false |
|
|
64
|
+
| Position? | named |
|
|
65
|
+
| Default Value | |
|
|
66
|
+
| Accept Pipeline Input? | false |
|
|
67
|
+
| Accept Wildcard Characters? | false |
|
|
68
|
+
|
|
69
|
+
### -Item <Item>
|
|
70
|
+
|
|
71
|
+
The item to have the history event attached.
|
|
72
|
+
|
|
73
|
+
| Aliases | |
|
|
74
|
+
| :--- | :--- |
|
|
75
|
+
| Required? | true |
|
|
76
|
+
| Position? | 1 |
|
|
77
|
+
| Default Value | |
|
|
78
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
79
|
+
| Accept Wildcard Characters? | false |
|
|
80
|
+
|
|
81
|
+
### -Path <String>
|
|
82
|
+
|
|
83
|
+
Path to the item to have the history event attached - additionally specify Language parameter to fetch different item language than the current user language.
|
|
84
|
+
|
|
85
|
+
| Aliases | |
|
|
86
|
+
| :--- | :--- |
|
|
87
|
+
| Required? | true |
|
|
88
|
+
| Position? | 1 |
|
|
89
|
+
| Default Value | |
|
|
90
|
+
| Accept Pipeline Input? | false |
|
|
91
|
+
| Accept Wildcard Characters? | false |
|
|
92
|
+
|
|
93
|
+
### -Id <String>
|
|
94
|
+
|
|
95
|
+
Id of the the item to have the history event attached - additionally specify Language parameter to fetch different item language than the current user language.
|
|
96
|
+
|
|
97
|
+
| Aliases | |
|
|
98
|
+
| :--- | :--- |
|
|
99
|
+
| Required? | true |
|
|
100
|
+
| Position? | named |
|
|
101
|
+
| Default Value | |
|
|
102
|
+
| Accept Pipeline Input? | false |
|
|
103
|
+
| Accept Wildcard Characters? | false |
|
|
104
|
+
|
|
105
|
+
### -Database <String>
|
|
106
|
+
|
|
107
|
+
Database containing the item to have the history event attached - can work with Language parameter to narrow the publication scope.
|
|
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
|
+
## Inputs
|
|
118
|
+
|
|
119
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
120
|
+
|
|
121
|
+
* Sitecore.Data.Items.Item
|
|
122
|
+
|
|
123
|
+
## Notes
|
|
124
|
+
|
|
125
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
126
|
+
|
|
127
|
+
## Examples
|
|
128
|
+
|
|
129
|
+
### EXAMPLE
|
|
130
|
+
|
|
131
|
+
```powershell
|
|
132
|
+
PS master:\> New-ItemWorkflowEvent -Path master:\content\home -lanuage "en" -Text "Just leaving a note"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Related Topics
|
|
136
|
+
|
|
137
|
+
* [Get-ItemWorkflowEvent](get-itemworkflowevent.md)
|
|
138
|
+
* Execute-Workflow
|
|
139
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
140
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# New-Package
|
|
2
|
+
|
|
3
|
+
Creates a new Sitecore install package object.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
New-Package \[-Name\] <String>
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
Creates a new Sitecore install package object that allows for further addition of items and files & further export to file.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String>
|
|
18
|
+
|
|
19
|
+
Package name
|
|
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
|
+
Following example creates a new package, adds content/home item to it and saves it in the Sitecore Package folder+ gives you an option to download the saved package.
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
$package = New-Package "Packing in Powerful Ways";
|
|
47
|
+
|
|
48
|
+
# Set package metadata
|
|
49
|
+
$package.Sources.Clear();
|
|
50
|
+
|
|
51
|
+
$package.Metadata.Author = "Adam Najmanowicz, Michael West";
|
|
52
|
+
$package.Metadata.Publisher = "Powerful Ways";
|
|
53
|
+
$package.Metadata.Version = "1.0";
|
|
54
|
+
$package.Metadata.Readme = 'This text will be visible to people installing your package'
|
|
55
|
+
|
|
56
|
+
# Add contnet/home to the package
|
|
57
|
+
$source = Get-Item 'master:\content\home' | New-ItemSource -Name 'Home Page' -InstallMode Overwrite
|
|
58
|
+
$package.Sources.Add($source);
|
|
59
|
+
|
|
60
|
+
# Save package
|
|
61
|
+
Export-Package -Project $package -Path "$($package.Name)-$($package.Metadata.Version).zip" -Zip
|
|
62
|
+
|
|
63
|
+
# Offer the user to download the package
|
|
64
|
+
Download-File "$SitecorePackageFolder\$($package.Name)-$($package.Metadata.Version).zip"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Related Topics
|
|
68
|
+
|
|
69
|
+
* [Export-Package](export-package.md)
|
|
70
|
+
* [Get-Package](get-package.md)
|
|
71
|
+
* Import-Package
|
|
72
|
+
* [New-ExplicitFileSource](new-explicitfilesource.md)
|
|
73
|
+
* [New-ExplicitItemSource](new-explicititemsource.md)
|
|
74
|
+
* [New-FileSource](new-filesource.md)
|
|
75
|
+
* [New-ItemSource](new-itemsource.md)
|
|
76
|
+
* [Install-UpdatePackage](install-updatepackage.md)
|
|
77
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
78
|
+
* [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/)
|
|
79
|
+
* [https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae](https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae)
|
|
80
|
+
* [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
|
|
81
|
+
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# New-PlaceholderSetting
|
|
2
|
+
|
|
3
|
+
Creates new placeholder setting definition that can later be added to an item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
New-PlaceholderSetting [-Item] <Item> [-Key <string>] [-Language <string[]>]
|
|
9
|
+
|
|
10
|
+
New-PlaceholderSetting [-Path] <string> [-Key <string>] [-Language <string[]>]
|
|
11
|
+
|
|
12
|
+
New-PlaceholderSetting -Id <string> [-Key <string>] [-Language <string[]>] [-Database <string>]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Detailed Description
|
|
16
|
+
|
|
17
|
+
Creates new placeholder setting definition that can later be added to an item. Most parameters can later be overriden when calling Add-PlaceholderSetting.
|
|
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
|
+
### -Id <string>
|
|
58
|
+
|
|
59
|
+
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
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>true</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
|
+
### -Item <Item>
|
|
92
|
+
|
|
93
|
+
The item to be processed.
|
|
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>true</td>
|
|
105
|
+
</tr>
|
|
106
|
+
<tr>
|
|
107
|
+
<td>Position?</td>
|
|
108
|
+
<td>0</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>true (ByValue, ByPropertyName)</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>Accept Wildcard Characters?</td>
|
|
120
|
+
<td>false</td>
|
|
121
|
+
</tr>
|
|
122
|
+
</tbody>
|
|
123
|
+
</table>
|
|
124
|
+
|
|
125
|
+
### -Key <string>
|
|
126
|
+
|
|
127
|
+
The key for this placeholder setting.
|
|
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>false</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>false</td>
|
|
155
|
+
</tr>
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
|
|
159
|
+
### -Language <string[]>
|
|
160
|
+
|
|
161
|
+
Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
|
|
162
|
+
|
|
163
|
+
<table>
|
|
164
|
+
<thead></thead>
|
|
165
|
+
<tbody>
|
|
166
|
+
<tr>
|
|
167
|
+
<td>Aliases</td>
|
|
168
|
+
<td>Languages</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td>Required?</td>
|
|
172
|
+
<td>false</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
|
+
### -Path <string>
|
|
194
|
+
|
|
195
|
+
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
|
|
196
|
+
|
|
197
|
+
<table>
|
|
198
|
+
<thead></thead>
|
|
199
|
+
<tbody>
|
|
200
|
+
<tr>
|
|
201
|
+
<td>Aliases</td>
|
|
202
|
+
<td>FullName, FileName</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>false</td>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>Accept Wildcard Characters?</td>
|
|
222
|
+
<td>false</td>
|
|
223
|
+
</tr>
|
|
224
|
+
</tbody>
|
|
225
|
+
</table>
|
|
226
|
+
|
|
227
|
+
## Inputs
|
|
228
|
+
|
|
229
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
230
|
+
|
|
231
|
+
* Sitecore.Data.Items.Item
|
|
232
|
+
|
|
233
|
+
## Outputs
|
|
234
|
+
|
|
235
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
236
|
+
|
|
237
|
+
* Sitecore.Layouts.PlaceholderDefinition
|
|
238
|
+
|
|
239
|
+
## Examples
|
|
240
|
+
|
|
241
|
+
### EXAMPLE 1
|
|
242
|
+
|
|
243
|
+
Create item defining placeholder setting
|
|
244
|
+
|
|
245
|
+
```powershell
|
|
246
|
+
$placeholderSetting = gi "master:\layout\Placeholder Settings\content" | New-PlaceholderSetting -Key "content"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Related Topics
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
* <a href='https://github.com/SitecorePowerShell/Console/' target='_blank'>https://github.com/SitecorePowerShell/Console/</a><br/>
|
|
253
|
+
* [Add-PlaceholderSetting](add-placeholdersetting.md)
|
|
254
|
+
* [Get-PlaceholderSetting](get-placeholdersetting.md)
|
|
255
|
+
* [Remove-PlaceholderSetting](remove-placeholdersetting.md)
|