@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.
Files changed (165) hide show
  1. package/README.md +3 -0
  2. package/dist/bundle.js +106 -12
  3. package/dist/register.js +7 -0
  4. package/dist/register.js.map +1 -1
  5. package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
  6. package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
  7. package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
  8. package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
  9. package/dist/tools/powershell/documentation/add-rendering.md +217 -0
  10. package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
  11. package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
  12. package/dist/tools/powershell/documentation/close-window.md +32 -0
  13. package/dist/tools/powershell/documentation/commands-list.md +134 -0
  14. package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
  15. package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
  16. package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
  17. package/dist/tools/powershell/documentation/disable-user.md +89 -0
  18. package/dist/tools/powershell/documentation/enable-user.md +89 -0
  19. package/dist/tools/powershell/documentation/expand-token.md +144 -0
  20. package/dist/tools/powershell/documentation/export-item.md +165 -0
  21. package/dist/tools/powershell/documentation/export-package.md +129 -0
  22. package/dist/tools/powershell/documentation/export-role.md +150 -0
  23. package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
  24. package/dist/tools/powershell/documentation/export-user.md +147 -0
  25. package/dist/tools/powershell/documentation/find-item.md +718 -0
  26. package/dist/tools/powershell/documentation/get-archive.md +73 -0
  27. package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
  28. package/dist/tools/powershell/documentation/get-cache.md +62 -0
  29. package/dist/tools/powershell/documentation/get-database.md +96 -0
  30. package/dist/tools/powershell/documentation/get-domain.md +75 -0
  31. package/dist/tools/powershell/documentation/get-item.md +186 -0
  32. package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
  33. package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
  34. package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
  35. package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
  36. package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
  37. package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
  38. package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
  39. package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
  40. package/dist/tools/powershell/documentation/get-layout.md +142 -0
  41. package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
  42. package/dist/tools/powershell/documentation/get-package.md +63 -0
  43. package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
  44. package/dist/tools/powershell/documentation/get-preset.md +70 -0
  45. package/dist/tools/powershell/documentation/get-rendering.md +248 -0
  46. package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
  47. package/dist/tools/powershell/documentation/get-role.md +134 -0
  48. package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
  49. package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
  50. package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
  51. package/dist/tools/powershell/documentation/get-session.md +107 -0
  52. package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
  53. package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
  54. package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
  55. package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
  56. package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
  57. package/dist/tools/powershell/documentation/get-user.md +193 -0
  58. package/dist/tools/powershell/documentation/get-useragent.md +38 -0
  59. package/dist/tools/powershell/documentation/import-function.md +83 -0
  60. package/dist/tools/powershell/documentation/import-item-1.md +180 -0
  61. package/dist/tools/powershell/documentation/import-item.md +180 -0
  62. package/dist/tools/powershell/documentation/import-role.md +137 -0
  63. package/dist/tools/powershell/documentation/import-user.md +137 -0
  64. package/dist/tools/powershell/documentation/initialize-item.md +87 -0
  65. package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
  66. package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
  67. package/dist/tools/powershell/documentation/install-package.md +95 -0
  68. package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
  69. package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
  70. package/dist/tools/powershell/documentation/invoke-script.md +111 -0
  71. package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
  72. package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
  73. package/dist/tools/powershell/documentation/lock-item.md +157 -0
  74. package/dist/tools/powershell/documentation/login-user.md +56 -0
  75. package/dist/tools/powershell/documentation/logout-user.md +30 -0
  76. package/dist/tools/powershell/documentation/merge-layout.md +102 -0
  77. package/dist/tools/powershell/documentation/new-domain.md +72 -0
  78. package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
  79. package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
  80. package/dist/tools/powershell/documentation/new-filesource.md +128 -0
  81. package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
  82. package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
  83. package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
  84. package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
  85. package/dist/tools/powershell/documentation/new-package.md +81 -0
  86. package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
  87. package/dist/tools/powershell/documentation/new-rendering.md +243 -0
  88. package/dist/tools/powershell/documentation/new-role.md +56 -0
  89. package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
  90. package/dist/tools/powershell/documentation/new-user.md +161 -0
  91. package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
  92. package/dist/tools/powershell/documentation/out-download.md +123 -0
  93. package/dist/tools/powershell/documentation/protect-item.md +120 -0
  94. package/dist/tools/powershell/documentation/publish-item.md +224 -0
  95. package/dist/tools/powershell/documentation/read-variable.md +252 -0
  96. package/dist/tools/powershell/documentation/receive-file.md +244 -0
  97. package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
  98. package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
  99. package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
  100. package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
  101. package/dist/tools/powershell/documentation/remove-domain.md +70 -0
  102. package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
  103. package/dist/tools/powershell/documentation/remove-layout.md +151 -0
  104. package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
  105. package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
  106. package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
  107. package/dist/tools/powershell/documentation/remove-role.md +70 -0
  108. package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
  109. package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
  110. package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
  111. package/dist/tools/powershell/documentation/remove-session.md +77 -0
  112. package/dist/tools/powershell/documentation/remove-user.md +97 -0
  113. package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
  114. package/dist/tools/powershell/documentation/reset-layout.md +130 -0
  115. package/dist/tools/powershell/documentation/restart-application.md +30 -0
  116. package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
  117. package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
  118. package/dist/tools/powershell/documentation/send-file.md +160 -0
  119. package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
  120. package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
  121. package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
  122. package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
  123. package/dist/tools/powershell/documentation/set-layout.md +166 -0
  124. package/dist/tools/powershell/documentation/set-rendering.md +213 -0
  125. package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
  126. package/dist/tools/powershell/documentation/set-user.md +221 -0
  127. package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
  128. package/dist/tools/powershell/documentation/show-alert.md +53 -0
  129. package/dist/tools/powershell/documentation/show-application.md +150 -0
  130. package/dist/tools/powershell/documentation/show-confirm.md +61 -0
  131. package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
  132. package/dist/tools/powershell/documentation/show-input.md +129 -0
  133. package/dist/tools/powershell/documentation/show-listview.md +276 -0
  134. package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
  135. package/dist/tools/powershell/documentation/show-result.md +158 -0
  136. package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
  137. package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
  138. package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
  139. package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
  140. package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
  141. package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
  142. package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
  143. package/dist/tools/powershell/documentation/test-account.md +74 -0
  144. package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
  145. package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
  146. package/dist/tools/powershell/documentation/test-rule.md +111 -0
  147. package/dist/tools/powershell/documentation/unlock-item.md +124 -0
  148. package/dist/tools/powershell/documentation/unlock-user.md +84 -0
  149. package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
  150. package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
  151. package/dist/tools/powershell/documentation/update-listview.md +139 -0
  152. package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
  153. package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
  154. package/dist/tools/powershell/documentation/write-log.md +82 -0
  155. package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
  156. package/dist/tools/powershell/get-powershell-documentation.js +47 -0
  157. package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
  158. package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
  159. package/dist/tools/powershell/run-powershell-script.js +13 -0
  160. package/dist/tools/powershell/run-powershell-script.js.map +1 -0
  161. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
  162. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
  163. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
  164. package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
  165. package/package.json +8 -8
@@ -0,0 +1,109 @@
1
+ # Set-UserPassword
2
+
3
+ Sets the Sitecore user password.
4
+
5
+ ## Syntax
6
+
7
+ Set-UserPassword \[-Identity\] <AccountIdentity> -OldPassword <String> \[-NewPassword <String>\]
8
+
9
+ Set-UserPassword \[-Identity\] <AccountIdentity> -Reset \[-NewPassword <String>\]
10
+
11
+ ## Detailed Description
12
+
13
+ The Set-UserPassword command resets or changes a user password.
14
+
15
+ The Identity parameter specifies the Sitecore user to remove. You can specify a user by its local name or fully qualified name.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Identity <AccountIdentity>
22
+
23
+ Specifies the Sitecore user by providing one of the following values.
24
+
25
+ ```powershell
26
+ Local Name
27
+ Example: admin
28
+ Fully Qualified Name
29
+ Example: sitecore\admin
30
+ ```
31
+
32
+ | Aliases | |
33
+ | :--- | :--- |
34
+ | Required? | true |
35
+ | Position? | 1 |
36
+ | Default Value | |
37
+ | Accept Pipeline Input? | true \(ByValue\) |
38
+ | Accept Wildcard Characters? | false |
39
+
40
+ ### -NewPassword <String>
41
+
42
+ | Aliases | |
43
+ | :--- | :--- |
44
+ | Required? | false |
45
+ | Position? | named |
46
+ | Default Value | |
47
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
48
+ | Accept Wildcard Characters? | false |
49
+
50
+ ### -OldPassword <String>
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
+ ### -Reset <SwitchParameter>
61
+
62
+ | Aliases | |
63
+ | :--- | :--- |
64
+ | Required? | true |
65
+ | Position? | named |
66
+ | Default Value | |
67
+ | Accept Pipeline Input? | false |
68
+ | Accept Wildcard Characters? | false |
69
+
70
+ ## Inputs
71
+
72
+ The input type is the type of the objects that you can pipe to the cmdlet.
73
+
74
+ * System.String
75
+
76
+ Represents the identity of a user.
77
+
78
+ Sitecore.Security.Accounts.User Represents the instance of a user.
79
+
80
+ ## Outputs
81
+
82
+ The output type is the type of the objects that the cmdlet emits.
83
+
84
+ * None.
85
+
86
+ ## Notes
87
+
88
+ Help Author: Adam Najmanowicz, Michael West
89
+
90
+ ## Examples
91
+
92
+ ### EXAMPLE 1
93
+
94
+ ```powershell
95
+ PS master:\> Set-UserPassword -Identity michael -NewPassword pass123 -OldPassword b
96
+ ```
97
+
98
+ ### EXAMPLE 2
99
+
100
+ ```powershell
101
+ PS master:\> "michael","adam","mike" | Set-UserPassword -NewPassword b -Reset
102
+ ```
103
+
104
+ ## Related Topics
105
+
106
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
107
+ * [Get-User](get-user.md)
108
+ * [Set-User](set-user.md)
109
+
@@ -0,0 +1,53 @@
1
+ # Show-Alert
2
+
3
+ Pauses the script and shows an alert to the user.
4
+
5
+ ## Syntax
6
+
7
+ Show-Alert \[-Title\] <String>
8
+
9
+ ## Detailed Description
10
+
11
+ Pauses the script and shows an alert specified in the -Title to the user. Once user clicks the OK button - script execution resumes.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Title <String>
18
+
19
+ Text to show the user in the alert dialog.
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | true \(ByValue\) |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ## Notes
30
+
31
+ Help Author: Adam Najmanowicz, Michael West
32
+
33
+ ## Examples
34
+
35
+ ### EXAMPLE
36
+
37
+ ```powershell
38
+ PS master:\> Show-Alert "Hello world."
39
+ ```
40
+
41
+ ## Related Topics
42
+
43
+ * [Read-Variable](read-variable.md)
44
+ * [Show-Application](show-application.md)
45
+ * [Show-Confirm](show-confirm.md)
46
+ * [Show-FieldEditor](show-fieldeditor.md)
47
+ * [Show-Input](show-input.md)
48
+ * [Show-ListView](show-listview.md)
49
+ * [Show-ModalDialog](show-modaldialog.md)
50
+ * [Show-Result](show-result.md)
51
+ * [Show-YesNoCancel](show-yesnocancel.md)
52
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
53
+
@@ -0,0 +1,150 @@
1
+ # Show-Application
2
+
3
+ Executes Sitecore Sheer application.
4
+
5
+ ## Syntax
6
+
7
+ Show-Application \[-Application\] <String> \[\[-Parameter\] <Hashtable>\] \[-Icon <String>\] \[-Modal\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
8
+
9
+ ## Detailed Description
10
+
11
+ Executes Sitecore Sheer application, allows for passing additional parameters, launching it on desktop in cooperative or in Modal mode.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Application <String>
18
+
19
+ Name of the Application to be executed. Application must be defined in the Core databse.
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
+ ### -Parameter <Hashtable>
30
+
31
+ Additional parameters passed to the application.
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | false |
36
+ | Position? | 2 |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ### -Icon <String>
42
+
43
+ Icon of the executed application \(used for titlebar and in the Sitecore taskbar on the desktop\)
44
+
45
+ | Aliases | |
46
+ | :--- | :--- |
47
+ | Required? | false |
48
+ | Position? | named |
49
+ | Default Value | |
50
+ | Accept Pipeline Input? | false |
51
+ | Accept Wildcard Characters? | false |
52
+
53
+ ### -Modal <SwitchParameter>
54
+
55
+ Causes the application to show in new browser modal window or modal overlay if used in Sitecore 7.2 or later.
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | false |
60
+ | Position? | named |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | false |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ### -Title <String>
66
+
67
+ Title of the window the app opens in.
68
+
69
+ | Aliases | |
70
+ | :--- | :--- |
71
+ | Required? | false |
72
+ | Position? | named |
73
+ | Default Value | |
74
+ | Accept Pipeline Input? | false |
75
+ | Accept Wildcard Characters? | false |
76
+
77
+ ### -Width <Int32>
78
+
79
+ Width of the modal window.
80
+
81
+ | Aliases | |
82
+ | :--- | :--- |
83
+ | Required? | false |
84
+ | Position? | named |
85
+ | Default Value | |
86
+ | Accept Pipeline Input? | false |
87
+ | Accept Wildcard Characters? | false |
88
+
89
+ ### -Height <Int32>
90
+
91
+ Height of the modal window.
92
+
93
+ | Aliases | |
94
+ | :--- | :--- |
95
+ | Required? | false |
96
+ | Position? | named |
97
+ | Default Value | |
98
+ | Accept Pipeline Input? | false |
99
+ | Accept Wildcard Characters? | false |
100
+
101
+ ## Inputs
102
+
103
+ The input type is the type of the objects that you can pipe to the cmdlet.
104
+
105
+ * Sitecore.Data.Items.Item
106
+
107
+ ## Notes
108
+
109
+ Help Author: Adam Najmanowicz, Michael West
110
+
111
+ ## Examples
112
+
113
+ ### EXAMPLE 1
114
+
115
+ Show Content Editor in new window \(or as an overlay in modal mode in Sitecore 7.2+\) with "/sitecore/templates" item selected.
116
+
117
+ ```powershell
118
+ $item = gi master:\templates
119
+
120
+ Show-Application `
121
+ -Application "Content Editor" `
122
+ -Parameter @{id ="$($item.ID)"; fo="$($item.ID)";la="$($item.Language.Name)"; vs="$($item.Version.Number)";sc_content="$($item.Database.Name)"} `
123
+ -Modal -Width 1600 -Height 800
124
+ ```
125
+
126
+ ### EXAMPLE 2
127
+
128
+ Show Content Editor as a new application on desktop with "/sitecore/content/home" item selected.
129
+
130
+ ```powershell
131
+ $item = gi master:\content\home
132
+
133
+ Show-Application `
134
+ -Application "Content Editor" `
135
+ -Parameter @{id ="$($item.ID)"; fo="$($item.ID)";la="$($item.Language.Name)"; vs="$($item.Version.Number)";sc_content="$($item.Database.Name)"} `
136
+ ```
137
+
138
+ ## Related Topics
139
+
140
+ * [Read-Variable](read-variable.md)
141
+ * [Show-Alert](show-alert.md)
142
+ * [Show-Confirm](show-confirm.md)
143
+ * [Show-FieldEditor](show-fieldeditor.md)
144
+ * [Show-Input](show-input.md)
145
+ * [Show-ListView](show-listview.md)
146
+ * [Show-ModalDialog](show-modaldialog.md)
147
+ * [Show-Result](show-result.md)
148
+ * [Show-YesNoCancel](show-yesnocancel.md)
149
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
150
+
@@ -0,0 +1,61 @@
1
+ # Show-Confirm
2
+
3
+ Shows a user a confirmation request message box.
4
+
5
+ ## Syntax
6
+
7
+ Show-Confirm \[-Title\] <String>
8
+
9
+ ## Detailed Description
10
+
11
+ Shows a user a confirmation request message box. Returns "yes" or "no" based on user's response. The buttons that are shown to the user are "OK" and "Cancel".
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Title <String>
18
+
19
+ Text to show the user in the dialog.
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | true \(ByValue\) |
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
+ * System.String
34
+
35
+ ## Notes
36
+
37
+ Help Author: Adam Najmanowicz, Michael West
38
+
39
+ ## Examples
40
+
41
+ ### EXAMPLE
42
+
43
+ ```powershell
44
+ PS master:\> Show-Confirm -Title "Do you like Sitecore PowerShell Extensions?"
45
+
46
+ yes
47
+ ```
48
+
49
+ ## Related Topics
50
+
51
+ * [Read-Variable](read-variable.md)
52
+ * [Show-Alert](show-alert.md)
53
+ * [Show-Application](show-application.md)
54
+ * [Show-FieldEditor](show-fieldeditor.md)
55
+ * [Show-Input](show-input.md)
56
+ * [Show-ListView](show-listview.md)
57
+ * [Show-ModalDialog](show-modaldialog.md)
58
+ * [Show-Result](show-result.md)
59
+ * [Show-YesNoCancel](show-yesnocancel.md)
60
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
61
+
@@ -0,0 +1,231 @@
1
+ # Show-FieldEditor
2
+
3
+ Shows Field editor for a provided item.
4
+
5
+ ## Syntax
6
+
7
+ Show-FieldEditor -Item <Item> -PreserveSections \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
8
+
9
+ Show-FieldEditor -Item <Item> \[-SectionTitle <String>\] \[-SectionIcon <String>\] \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
10
+
11
+ Show-FieldEditor -Path <String> \[-Language <String\[\]>\] -PreserveSections \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
12
+
13
+ Show-FieldEditor -Path <String> \[-Language <String\[\]>\] \[-SectionTitle <String>\] \[-SectionIcon <String>\] \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
14
+
15
+ Show-FieldEditor -Id <String> \[-Database <String>\] \[-Language <String\[\]>\] -PreserveSections \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
16
+
17
+ Show-FieldEditor -Id <String> \[-Database <String>\] \[-Language <String\[\]>\] \[-SectionTitle <String>\] \[-SectionIcon <String>\] \[-Name <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\] \[-IncludeStandardFields\]
18
+
19
+ ## Detailed Description
20
+
21
+ Shows Field editor for a provided item allows for editing all or selected list of fields. If user closes the dialog by pressing the "OK" button "ok" string will be returned. Otherwise "cancel" will be returned.
22
+
23
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
24
+
25
+ ## Parameters
26
+
27
+ ### -Name <String\[\]>
28
+
29
+ Array of names of the fields to be edited.
30
+
31
+ This parameter supports globbing so you can simply use "_" to allow editing of all fields. If a field is prefixed with a dash - this field will be excluded from the list of fields. e.g. the following will display all fields except title from Show-FieldEditor -Path "master:\content\home" -Name "_", "-Title"
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | false |
36
+ | Position? | named |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ### -Title <String>
42
+
43
+ Title of the dialog containing the field editor.
44
+
45
+ | Aliases | |
46
+ | :--- | :--- |
47
+ | Required? | false |
48
+ | Position? | named |
49
+ | Default Value | |
50
+ | Accept Pipeline Input? | false |
51
+ | Accept Wildcard Characters? | false |
52
+
53
+ ### -Width <Int32>
54
+
55
+ Width of the dialog containing the field editor.
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | false |
60
+ | Position? | named |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | false |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ### -Height <Int32>
66
+
67
+ Height of the dialog containing the field editor.
68
+
69
+ | Aliases | |
70
+ | :--- | :--- |
71
+ | Required? | false |
72
+ | Position? | named |
73
+ | Default Value | |
74
+ | Accept Pipeline Input? | false |
75
+ | Accept Wildcard Characters? | false |
76
+
77
+ ### -IncludeStandardFields <SwitchParameter>
78
+
79
+ Add this parameter to add standard fields to the list that is being considered to be displayed
80
+
81
+ | Aliases | |
82
+ | :--- | :--- |
83
+ | Required? | false |
84
+ | Position? | named |
85
+ | Default Value | |
86
+ | Accept Pipeline Input? | false |
87
+ | Accept Wildcard Characters? | false |
88
+
89
+ ### -Item <Item>
90
+
91
+ The item to be edited.
92
+
93
+ | Aliases | |
94
+ | :--- | :--- |
95
+ | Required? | true |
96
+ | Position? | named |
97
+ | Default Value | |
98
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
99
+ | Accept Wildcard Characters? | false |
100
+
101
+ ### -Path <String>
102
+
103
+ Path to the item to be edited - additionally specify Language parameter to fetch different item language than the current user language.
104
+
105
+ | Aliases | |
106
+ | :--- | :--- |
107
+ | Required? | true |
108
+ | Position? | named |
109
+ | Default Value | |
110
+ | Accept Pipeline Input? | false |
111
+ | Accept Wildcard Characters? | false |
112
+
113
+ ### -Id <String>
114
+
115
+ Id of the the item to be edited - additionally specify Language parameter to fetch different item language than the current user language.
116
+
117
+ | Aliases | |
118
+ | :--- | :--- |
119
+ | Required? | true |
120
+ | Position? | named |
121
+ | Default Value | |
122
+ | Accept Pipeline Input? | false |
123
+ | Accept Wildcard Characters? | false |
124
+
125
+ ### -Database <String>
126
+
127
+ Database containing the item to be edited - can work with Language parameter to narrow the publication scope.
128
+
129
+ | Aliases | |
130
+ | :--- | :--- |
131
+ | Required? | false |
132
+ | Position? | named |
133
+ | Default Value | |
134
+ | Accept Pipeline Input? | false |
135
+ | Accept Wildcard Characters? | false |
136
+
137
+ ### -Language <String\[\]>
138
+
139
+ Language that will be edited. If not specified the current user language will be used. Globbing/wildcard supported.
140
+
141
+ | Aliases | |
142
+ | :--- | :--- |
143
+ | Required? | false |
144
+ | Position? | named |
145
+ | Default Value | |
146
+ | Accept Pipeline Input? | false |
147
+ | Accept Wildcard Characters? | false |
148
+
149
+ ### -PreserveSections <SwitchParameter>
150
+
151
+ If added this parameter tells editor to preserve the original item field sections, otherwise all fields are placed in a single section Named by SectionTitle parameter and having the SectionIcon icon.
152
+
153
+ | Aliases | |
154
+ | :--- | :--- |
155
+ | Required? | true |
156
+ | Position? | named |
157
+ | Default Value | |
158
+ | Accept Pipeline Input? | false |
159
+ | Accept Wildcard Characters? | false |
160
+
161
+ ### -SectionTitle <String>
162
+
163
+ If PreserveSections is not added to parameters - this parameter provides a title for the global section all fields are placed under.
164
+
165
+ | Aliases | |
166
+ | :--- | :--- |
167
+ | Required? | false |
168
+ | Position? | named |
169
+ | Default Value | |
170
+ | Accept Pipeline Input? | false |
171
+ | Accept Wildcard Characters? | false |
172
+
173
+ ### -SectionIcon <String>
174
+
175
+ If PreserveSections is not added to parameters - this parameter provides a iconfor the global section all fields are placed under.
176
+
177
+ | Aliases | |
178
+ | :--- | :--- |
179
+ | Required? | false |
180
+ | Position? | named |
181
+ | Default Value | |
182
+ | Accept Pipeline Input? | false |
183
+ | Accept Wildcard Characters? | false |
184
+
185
+ ## Inputs
186
+
187
+ The input type is the type of the objects that you can pipe to the cmdlet.
188
+
189
+ * Sitecore.Data.Items.Item
190
+
191
+ ## Outputs
192
+
193
+ The output type is the type of the objects that the cmdlet emits.
194
+
195
+ * System.String
196
+
197
+ ## Notes
198
+
199
+ Help Author: Adam Najmanowicz, Michael West
200
+
201
+ ## Examples
202
+
203
+ ### EXAMPLE 1
204
+
205
+ Show field editor that shows all non-standard fields on sitecore/content/home item except for field "title" The dialog will be titled "My Home Item" all fields inside will be in single section.
206
+
207
+ ```powershell
208
+ PS master:\> Show-FieldEditor -Path master:\content\home -Name "*" , "-Title" -Title "My Home Item"
209
+ ```
210
+
211
+ ### EXAMPLE 2
212
+
213
+ Show field editor that shows all fields including standard fields on sitecore/content/home The dialog will preserve the item sections.
214
+
215
+ ```powershell
216
+ PS master:\> Get-Item "master:\content\home" | Show-FieldEditor -Name "*" -IncludeStandardFields -PreserveSections
217
+ ```
218
+
219
+ ## Related Topics
220
+
221
+ * [Read-Variable](read-variable.md)
222
+ * [Show-Alert](show-alert.md)
223
+ * [Show-Application](show-application.md)
224
+ * [Show-Confirm](show-confirm.md)
225
+ * [Show-Input](show-input.md)
226
+ * [Show-ListView](show-listview.md)
227
+ * [Show-ModalDialog](show-modaldialog.md)
228
+ * [Show-Result](show-result.md)
229
+ * [Show-YesNoCancel](show-yesnocancel.md)
230
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
231
+