/Platform/Internal/List View/Ribbon/Item/
where Platform is the module and Item is a script library. Let's take a look at the script here /Platform/Internal/List View/Ribbon/Item/Open
$selectedData
is provided to the script automatically by SPE in context of the content of the results on Show-ListView
.$selectedData
– the selected objects in the list view (the same will be passed to the $resultSet
variable for compatibility with older scripts)$allData
– all objects passed to the list view using the -Data
parameter.$filteredData
– all objects displayed after filtering is performed with the search criteria entered by the user in the ribbon.$exportData
– same as $filteredData
, however in this case the objects will have additional properties to support easy display with properties processed as text.$actionData
– any object that was passed to Show-ListView
using the -ActionData
parameter. Useful when you need additional context that the Show-ListView
command does not explicitly know about. It’s your custom data.$formatProperty
– the content of the –Property
parameter when running the command.$title
– window title of the list view.$infoTitle
– info title of the list view.$infoDescription
– info title of the list view./Internal/List View/Ribbon/[Object type]
. The [Object type]
is the name of the .Net class for which the action is valid. For example, if you want your action to be visible for Sitecore.Data.Items.Item
then save the script at the path /Internal/List View/Ribbon/Item
.Show-ListView
that are of the type based on location. Rules will provide more granular control and allow for rule-based conditions that determine action visibility.Item
that are of template Schedule
.Show-ListView
.-ViewName
parameter. Running the script below will produce a report with the action not shown:Update-ListView
command. Consider the following script:Update-ListView
command.Read-Variable
command or Show alert using the Show-Alert
command or do just about anything possible otherwise from the context menu, ribbon or other interactive integration points.Show-ListView
command has one more useful parameter named -ActionData
which I mentioned above but is worth mentioning again. Anything passed using this parameter will be set as the $actionData
variable – this means your report and actions can pass custom data in them it can be as simple as an object or as complex as a hashtable so there is really no hard limit on what can progress from a report to report. Any object that was passed to Show-ListView
using the -ActionData
parameter will be available to your action.-ActionsInSession
parameter.Show-ListView
command provides the Hide parameter to control visibility of the UI elements.-Hide
with one or more of the following options:AllExport
- hides all export scripts (left-most ribbon panel)NonSpecificExport
- hides export filters that are not specific to this view as specified by -ViewName
(left-most ribbon panel)Filter
- hides filter panelPagingWhenNotNeeded
- hides paging when list is shorter than the page specifiedAllActions
- hides all actions (right-most ribbon panel)NonSpecificActions
- hides actions that are not specific to this view as specified by -ViewName
(right-most ribbon panel)StatusBar
- hides status bar.