SitecorePowerShell / Console

Sitecore PowerShell Extensions
https://doc.sitecorepowershell.com/
Other
114 stars 70 forks source link

Feature request: Enable rule editor to edit conditions and actions #905

Closed damcbc closed 7 years ago

damcbc commented 7 years ago

Currently when using the Read-Variable command and using the rule editor it will not allow you to selection actions. It allows only for conditions. Spoke to mr. Michael West and he confirmed that currently SPE hides by default the actions on that editor.

For example: $result = Read-Variable -Parameters @{ Name = "psRule"; Editor="rule"; title="My Editor"; Tooltip="Select the condition"; }

when you run the script with this command the rule editor will not enable you to select which actions to take when editing the rule only the conditions.

michaellwest commented 7 years ago

Script using rule and action:

$result = Read-Variable -Parameters @{ 
    Name = "psRule"; Editor="rule action"; title="My Editor"; Tooltip="Select the condition";
}

Produces the following: image

@AdamNaj Would we want the rule path configurable too? Current hard-coded to "/sitecore/system/Settings/Rules/PowerShell"

michaellwest commented 7 years ago

Implemented.

AdamNaj commented 7 years ago

Added a dialog size increase when actions are showing on top of rules. The rest checks out great!