@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,129 @@
1
+ # Show-Input
2
+
3
+ Shows prompt message box asking user to provide a text string.
4
+
5
+ ## Syntax
6
+
7
+ Show-Input \[-Prompt\] <String> \[-DefaultValue <String>\] \[-Validation <String>\] \[-ErrorMessage <String>\] \[-MaxLength <Int32>\]
8
+
9
+ ## Detailed Description
10
+
11
+ Shows prompt message box asking user to provide a text string.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Prompt <String>
18
+
19
+ Prompt message to show in the message box shown to a user.
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
+ ### -DefaultValue <String>
30
+
31
+ Default value to be provided for the text box.
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
+ ### -Validation <String>
42
+
43
+ Regex for value validation. If user enters a value that does not validate - en error message defined with the "ErrorMessage" parameter will be shown and user will be asked to enter the value again.
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
+ ### -ErrorMessage <String>
54
+
55
+ Error message to show when regex validation fails.
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
+ ### -MaxLength <Int32>
66
+
67
+ Maximum length of the string returned. If user enters a longer value - en error message will be shown and user will be asked to enter the value again.
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
+ ## Outputs
78
+
79
+ The output type is the type of the objects that the cmdlet emits.
80
+
81
+ * System.String
82
+
83
+ ## Notes
84
+
85
+ Help Author: Adam Najmanowicz, Michael West
86
+
87
+ ## Examples
88
+
89
+ ### EXAMPLE 1
90
+
91
+ Requests that the user provides an email, validates it against a regular expression snd whows an allert if the format is not valid
92
+
93
+ ```powershell
94
+ PS master:\> Show-Input "Please provide your email" -DefaultValue "my@email.com" -Validation "^[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$" -ErrorMessage "Not a proper email!"
95
+ ```
96
+
97
+ ### EXAMPLE 2
98
+
99
+ Uses Show-Input command to request user a new name for the content item validating the proper characters are used and assigns the result to $newName variable \(nothing gets changed\)
100
+
101
+ ```powershell
102
+ PS master:\> $contentItem = get-item master:\content
103
+ PS master:\> $newName = Show-Input "Please provide the new name for the '$($contentItem.Name)' Item" -DefaultValue $contentItem.Name -Validation "^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" -ErrorMessage "Invalid characters in the name"
104
+
105
+ #print new name
106
+ PS master:\> Write-Host "The new name you've chosen is '$($newName)'"
107
+ ```
108
+
109
+ ### EXAMPLE 3
110
+
111
+ Requests that the user provides a string of at most 5 characters
112
+
113
+ ```powershell
114
+ Show-Input "Please provide 5 characters at most" -MaxLength 5
115
+ ```
116
+
117
+ ## Related Topics
118
+
119
+ * [Read-Variable](read-variable.md)
120
+ * [Show-Alert](show-alert.md)
121
+ * [Show-Application](show-application.md)
122
+ * [Show-Confirm](show-confirm.md)
123
+ * [Show-FieldEditor](show-fieldeditor.md)
124
+ * [Show-ListView](show-listview.md)
125
+ * [Show-ModalDialog](show-modaldialog.md)
126
+ * [Show-Result](show-result.md)
127
+ * [Show-YesNoCancel](show-yesnocancel.md)
128
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
129
+
@@ -0,0 +1,276 @@
1
+ # Show-ListView
2
+
3
+ Sends output to an interactive table in a separate window.
4
+
5
+ ## Syntax
6
+
7
+ Show-ListView \[-PageSize <Int32>\] \[-Modal\] \[-ActionData <Object>\] \[-ViewName <String>\] \[-ActionsInSession\] \[-Show <None \| SharedExport \| Filter \| PagingAlways \| SharedActions \| StatusBar \| All>\] \[-InfoTitle <String>\] \[-InfoDescription <String>\] \[-MissingDataMessage <String>\] \[-Icon <String>\] -Data <Object> \[-Property <Object\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
8
+
9
+ ## Detailed Description
10
+
11
+ The Show-ListView command sends the output from a command to a grid view window where the output is displayed in an interactive table. Because this command requires a user interface, it does not work in a non-interactive scenarios like within web service calls. You can use the following features of the table to examine your data: -- Sort. To sort the data, click a column header. Click again to toggle from ascending to descending order. -- Quick Filter. Use the "Filter" box at the top of the window to search the text in the table. You can search for text in a particular column, search for literals, and search for multiple words. -- Execute actions on selected items. To execute action on the data from Show-ListView, Ctrl+click the items you want to be included in the action and press the desired action in the "Actions" chunk in the ribbon. -- Export contents of the view in XML, CSV, Json, HTML or Excel file and download that onto the user's computer. The downloaded results will take into account current filter and order of the items.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -PageSize <Int32>
18
+
19
+ Number of results shown per page.
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | false |
24
+ | Position? | named |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | false |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ### -Modal <SwitchParameter>
30
+
31
+ If this parameter is provided Results will show in a new window \(in Sitecore 6.x up till Sitecore 7.1\) or in a modal overlay \(Sitecore 7.2+\)
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
+ ### -ActionData <Object>
42
+
43
+ Additional data what will be passed to the view. All actions that are executed from that view window will have that data accessible to them as $actionData variable.
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
+ ### -ViewName <String>
54
+
55
+ View signature name - this can be used by action commands to determine whether to show an action or not using the Show/Enable rules.
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
+ ### -ActionsInSession <SwitchParameter>
66
+
67
+ If this parameter is specified actions will be executed in the same session as the one in which the command is executed.
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
+ ### -Show <ShowListViewFeatures>
78
+
79
+ Shows UI elements selectively in the results dialog -- All - shows all UI elements automatically - default value -- SharedExport - shows export filters that are not specific to this very `-ViewName report (left-most ribbon panel) -- Filter - shows filter panel -- PagingAlways - shows paging when list is shorter than the page specified -- SharedActions - shows actions that are not specific to this very`-ViewName report \(right-most ribbon panel\) -- StatusBar - shows status bar.
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
+ ### -InfoTitle <String>
90
+
91
+ Title on the panel that appears below the ribbon in the results 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
+ ### -InfoDescription <String>
102
+
103
+ Description that appears on the panel below the ribbon in the results window.
104
+
105
+ | Aliases | |
106
+ | :--- | :--- |
107
+ | Required? | false |
108
+ | Position? | named |
109
+ | Default Value | |
110
+ | Accept Pipeline Input? | false |
111
+ | Accept Wildcard Characters? | false |
112
+
113
+ ### -MissingDataMessage <String>
114
+
115
+ If no Items were provided for -Data parameter the message provided in this parameter will be shown in the middle of the List View dialog to notify users of the lack of items to display.
116
+
117
+ | Aliases | |
118
+ | :--- | :--- |
119
+ | Required? | false |
120
+ | Position? | named |
121
+ | Default Value | |
122
+ | Accept Pipeline Input? | false |
123
+ | Accept Wildcard Characters? | false |
124
+
125
+ ### -Icon <String>
126
+
127
+ Icon of the result window. \(Shows in the top/left corner and on the Sitecore taskbar\).
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
+ ### -Data <Object>
138
+
139
+ Data to be displayed in the view.
140
+
141
+ | Aliases | |
142
+ | :--- | :--- |
143
+ | Required? | true |
144
+ | Position? | named |
145
+ | Default Value | |
146
+ | Accept Pipeline Input? | true \(ByValue\) |
147
+ | Accept Wildcard Characters? | false |
148
+
149
+ ### -Property <Object\[\]>
150
+
151
+ Specifies the object properties that appear in the display and the order in which they appear. Type one or more property names \(separated by commas\), or use a hash table to display a calculated property.
152
+
153
+ The value of the Property parameter can be a new calculated property. To create a calculated, property, use a hash table. Valid keys are: -- Name \(or Label\) <string> -- Expression <string> or <script block>
154
+
155
+ | Aliases | |
156
+ | :--- | :--- |
157
+ | Required? | false |
158
+ | Position? | named |
159
+ | Default Value | |
160
+ | Accept Pipeline Input? | false |
161
+ | Accept Wildcard Characters? | false |
162
+
163
+ ### -Title <String>
164
+
165
+ Title of the results window.
166
+
167
+ | Aliases | |
168
+ | :--- | :--- |
169
+ | Required? | false |
170
+ | Position? | named |
171
+ | Default Value | |
172
+ | Accept Pipeline Input? | false |
173
+ | Accept Wildcard Characters? | false |
174
+
175
+ ### -Width <Int32>
176
+
177
+ Width of the results window. Only applicable when also using the `-Modal` switch.
178
+
179
+ | Aliases | |
180
+ | :--- | :--- |
181
+ | Required? | false |
182
+ | Position? | named |
183
+ | Default Value | |
184
+ | Accept Pipeline Input? | false |
185
+ | Accept Wildcard Characters? | false |
186
+
187
+ ### -Height <Int32>
188
+
189
+ Height of the results window. Only applicable when also using the `-Modal` switch.
190
+
191
+ | Aliases | |
192
+ | :--- | :--- |
193
+ | Required? | false |
194
+ | Position? | named |
195
+ | Default Value | |
196
+ | Accept Pipeline Input? | false |
197
+ | Accept Wildcard Characters? | false |
198
+
199
+ ## Inputs
200
+
201
+ The input type is the type of the objects that you can pipe to the cmdlet.
202
+
203
+ * System.Management.Automation.PSObject
204
+
205
+ ## Outputs
206
+
207
+ The output type is the type of the objects that the cmdlet emits.
208
+
209
+ * System.String
210
+
211
+ ## Notes
212
+
213
+ Help Author: Adam Najmanowicz, Michael West
214
+
215
+ ## Examples
216
+
217
+ ### EXAMPLE 1
218
+
219
+ This command formats information about Sitecore items in a table. The Get-ChildItem command gets objects representing the items. The pipeline operator \(\|\) passes the object to the Show-ListView command. Show-ListView displays the objects in a table.
220
+
221
+ ```powershell
222
+ PS master:\> Get-Item -path master:\* | Show-ListView -Property Name, DisplayName, ProviderPath, TemplateName, Language
223
+ ```
224
+
225
+ ### EXAMPLE 2
226
+
227
+ This command formats information about Sitecore items in a table. The Get-ItemReferrer command gets all references of the "Sample Item" template. The pipeline operator \(\|\) passes the object to the Show-ListView command. Show-ListView displays the objects in a table. The Properties are not displaying straight properties but use the Name/Expression scheme to provide a nicely named values that like in the case of languages which are aggregarde form the "Languages" property.
228
+
229
+ ```powershell
230
+ PS master:\> Get-ItemReferrer -path 'master:\templates\Sample\Sample Item' |
231
+ Show-ListView -Property `
232
+ @{Label="Name"; Expression={$_.DisplayName} },
233
+ @{Label="Path"; Expression={$_.Paths.Path} },
234
+ @{Label="Languages"; Expression={$_.Languages | % { $_.Name + ", "} } }
235
+ ```
236
+
237
+ ### EXAMPLE 3
238
+
239
+ The following demonstrates the use of a custom object used in the report. Notice that a custom Icon can be set.
240
+
241
+ ```powershell
242
+ $item = Get-Item -Path "master:\content\home\sample item 1"
243
+
244
+ $customItem = [pscustomobject]@{
245
+ "ID"=$Item.ID
246
+ "Icon"=$Item.__Icon
247
+ "DisplayName"=$Item.DisplayName
248
+ "ItemPath"=$Item.ItemPath
249
+ "Version"=$Item.Version
250
+ "Language"=$Item.Language
251
+ "__Updated"=$Item.__Updated
252
+ "__Updated by"=$Item."__Updated by"
253
+ }
254
+
255
+ $customItem | Show-ListView
256
+ ```
257
+
258
+ ## Related Topics
259
+
260
+ * [Update-ListView](update-listview.md)
261
+ * Out-GridView
262
+ * Format-Table
263
+ * [Read-Variable](read-variable.md)
264
+ * [Show-Alert](show-alert.md)
265
+ * [Show-Application](show-application.md)
266
+ * [Show-Confirm](show-confirm.md)
267
+ * [Show-FieldEditor](show-fieldeditor.md)
268
+ * [Show-Input](show-input.md)
269
+ * [Show-ModalDialog](show-modaldialog.md)
270
+ * [Show-Result](show-result.md)
271
+ * [Show-YesNoCancel](show-yesnocancel.md)
272
+ * [https://blog.najmanowicz.com/2014/10/25/creating-beautiful-sitecore-reports-easily-with-powershell-extensions/](https://blog.najmanowicz.com/2014/10/25/creating-beautiful-sitecore-reports-easily-with-powershell-extensions/)
273
+ * [https://michaellwest.blogspot.com/2014/04/reports-with-sitecore-powershell.html](https://michaellwest.blogspot.com/2014/04/reports-with-sitecore-powershell.html)
274
+ * [https://sitecorejunkie.com/2014/05/28/create-a-custom-report-in-sitecore-powershell-extensions/](https://sitecorejunkie.com/2014/05/28/create-a-custom-report-in-sitecore-powershell-extensions/)
275
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
276
+
@@ -0,0 +1,137 @@
1
+ # Show-ModalDialog
2
+
3
+ Shows Sitecore Sheer control as a modal dialog.
4
+
5
+ ## Syntax
6
+
7
+ Show-ModalDialog -Control <String> \[-Parameters <Hashtable>\] \[-HandleParameters <Hashtable>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
8
+
9
+ Show-ModalDialog -Url <String> \[-HandleParameters <Hashtable>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
10
+
11
+ ## Detailed Description
12
+
13
+ Shows Sitecore Sheer control as a modal dialog. If control returns a value - the value will be passed back as the result of the command execution.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Parameters
18
+
19
+ ### -Control <String>
20
+
21
+ Name of the Sitecore Sheer control to show
22
+
23
+ | Aliases | |
24
+ | :--- | :--- |
25
+ | Required? | true |
26
+ | Position? | named |
27
+ | Default Value | |
28
+ | Accept Pipeline Input? | false |
29
+ | Accept Wildcard Characters? | false |
30
+
31
+ ### -Url <String>
32
+
33
+ A fully formed URL that constitutes a control execution request.
34
+
35
+ | Aliases | |
36
+ | :--- | :--- |
37
+ | Required? | true |
38
+ | Position? | named |
39
+ | Default Value | |
40
+ | Accept Pipeline Input? | false |
41
+ | Accept Wildcard Characters? | false |
42
+
43
+ ### -Parameters <Hashtable>
44
+
45
+ Hashtable of parameters to pass to the control in the url.
46
+
47
+ | Aliases | |
48
+ | :--- | :--- |
49
+ | Required? | false |
50
+ | Position? | named |
51
+ | Default Value | |
52
+ | Accept Pipeline Input? | false |
53
+ | Accept Wildcard Characters? | false |
54
+
55
+ ### -HandleParameters <Hashtable>
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 control dialog.
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 control dialog.
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 control dialog.
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
+ ## Outputs
108
+
109
+ The output type is the type of the objects that the cmdlet emits.
110
+
111
+ * System.String
112
+
113
+ ## Notes
114
+
115
+ Help Author: Adam Najmanowicz, Michael West
116
+
117
+ ## Examples
118
+
119
+ ### EXAMPLE
120
+
121
+ ```powershell
122
+ PS master:\> Show-ModalDialog -Control "ConfirmChoice" -Parameters @{btn_0="Yes (returns btn_0)"; btn_1="No (returns btn_1)"; btn_2="return btn_2"; te="Message Text"; cp="My Caption"} -Height 120 -Width 400
123
+ ```
124
+
125
+ ## Related Topics
126
+
127
+ * [Read-Variable](read-variable.md)
128
+ * [Show-Alert](show-alert.md)
129
+ * [Show-Application](show-application.md)
130
+ * [Show-Confirm](show-confirm.md)
131
+ * [Show-FieldEditor](show-fieldeditor.md)
132
+ * [Show-Input](show-input.md)
133
+ * [Show-ListView](show-listview.md)
134
+ * [Show-Result](show-result.md)
135
+ * [Show-YesNoCancel](show-yesnocancel.md)
136
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
137
+
@@ -0,0 +1,158 @@
1
+ # Show-Result
2
+
3
+ Shows a Sheer dialog with text results showing the output of the script or another control selected by the user based on either control name or Url to the control.
4
+
5
+ ## Syntax
6
+
7
+ Show-Result -Control <String> \[-Parameters <String\[\]>\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
8
+
9
+ Show-Result -Url <String> \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
10
+
11
+ Show-Result \[-Text\] \[-Title <String>\] \[-Width <Int32>\] \[-Height <Int32>\]
12
+
13
+ ## Detailed Description
14
+
15
+ Shows a Sheer dialog with text results showing the output of the script or another control selected by the user based on either control name or Url to the control.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Control <String>
22
+
23
+ Name of the Sheer control to execute.
24
+
25
+ | Aliases | |
26
+ | :--- | :--- |
27
+ | Required? | true |
28
+ | Position? | named |
29
+ | Default Value | |
30
+ | Accept Pipeline Input? | false |
31
+ | Accept Wildcard Characters? | false |
32
+
33
+ ### -Url <String>
34
+
35
+ Url to the Sheer control to execute.
36
+
37
+ | Aliases | |
38
+ | :--- | :--- |
39
+ | Required? | true |
40
+ | Position? | named |
41
+ | Default Value | |
42
+ | Accept Pipeline Input? | false |
43
+ | Accept Wildcard Characters? | false |
44
+
45
+ ### -Parameters <String\[\]>
46
+
47
+ Parameters to be passed to the executed control when executing with the -Control parameter specified.
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
+ ### -Text <SwitchParameter>
58
+
59
+ Shows the default text dialog.
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
+ ### -Title <String>
70
+
71
+ Title of the window containing the control.
72
+
73
+ | Aliases | |
74
+ | :--- | :--- |
75
+ | Required? | false |
76
+ | Position? | named |
77
+ | Default Value | |
78
+ | Accept Pipeline Input? | false |
79
+ | Accept Wildcard Characters? | false |
80
+
81
+ ### -Width <Int32>
82
+
83
+ Width of the window containing the control.
84
+
85
+ | Aliases | |
86
+ | :--- | :--- |
87
+ | Required? | false |
88
+ | Position? | named |
89
+ | Default Value | |
90
+ | Accept Pipeline Input? | false |
91
+ | Accept Wildcard Characters? | false |
92
+
93
+ ### -Height <Int32>
94
+
95
+ Height of the window containing the control.
96
+
97
+ | Aliases | |
98
+ | :--- | :--- |
99
+ | Required? | false |
100
+ | Position? | named |
101
+ | Default Value | |
102
+ | Accept Pipeline Input? | false |
103
+ | Accept Wildcard Characters? | false |
104
+
105
+ ## Inputs
106
+
107
+ The input type is the type of the objects that you can pipe to the cmdlet.
108
+
109
+ * Sitecore.Data.Items.Item
110
+
111
+ ## Outputs
112
+
113
+ The output type is the type of the objects that the cmdlet emits.
114
+
115
+ * System.String
116
+
117
+ ## Notes
118
+
119
+ Help Author: Adam Najmanowicz, Michael West
120
+
121
+ ## Examples
122
+
123
+ ### EXAMPLE 1
124
+
125
+ Show results of script executio
126
+
127
+ ```powershell
128
+ PS master:\> Show-Result -Text
129
+ ```
130
+
131
+ ### EXAMPLE 2
132
+
133
+ Show the Control Panel control in a Window of specified size.
134
+
135
+ ```powershell
136
+ PS master:\> Show-Result -Control "ControlPanel" -Width 1024 -Height 640
137
+ ```
138
+
139
+ ### EXAMPLE 3
140
+
141
+ ```powershell
142
+ Shows a new instance of ISE
143
+ Show-Result -Url "/sitecore/shell/Applications/PowerShell/PowerShellIse"
144
+ ```
145
+
146
+ ## Related Topics
147
+
148
+ * [Read-Variable](read-variable.md)
149
+ * [Show-Alert](show-alert.md)
150
+ * [Show-Application](show-application.md)
151
+ * [Show-Confirm](show-confirm.md)
152
+ * [Show-FieldEditor](show-fieldeditor.md)
153
+ * [Show-Input](show-input.md)
154
+ * [Show-ListView](show-listview.md)
155
+ * [Show-ModalDialog](show-modaldialog.md)
156
+ * [Show-YesNoCancel](show-yesnocancel.md)
157
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
158
+