I had the need to select whether or not a panel (variant) is displayed based upon the current workflow and/or workflow state of the current node.
With the attached path you can select the workflow and/or workflow state as criteria.

Please note that #1511694: Better integration with panels offers a patch to display the 'workflow widget' in panels. Both use hook_ctools_plugin_directory() but currently this patch based on a plugin variable so untill these get in sync you can only use these together when using $plugin as in this patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | panels_access_rules-2187731-2-d7.patch | 5.36 KB | botris |
| Revise_stage.png | 36.72 KB | botris |
Comments
Comment #1
botrisAnd the patch.
Comment #2
johnvI guess this is only needed for workflow_node?
Comment #4
johnvCommitted with contribution, @boris sondagh.
It was added to workflow_node module, not the main workflow module (since it is not relevant for workflow_field).
I think there is an error in below code, where IMO it shows the state name twice.
Please reopen this issue if there is still a problem.
Comment #5
botrisThanks