Support Workflow buttons

Created on 24 July 2024, 10 months ago
Updated 25 July 2024, 10 months ago

Problem/Motivation

There are many ways to schedule transitions but the one provided by this module is still the best, simple & intuitive way.

Unfortunately I usually use workflow_buttons module as well, to make the content moderation workflow even more intuitive for editors (it adds a node form button for every state transition, like "Save as Draft", "Publish", etc.), and that completely breaks this module.

I guess this module is built on top on the specific "Moderation state" field widget, so I'm not even sure if/how would it be possible to make the two modules work together.. do you know?

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • 🇸🇰Slovakia kaszarobert

    I looked through the workflow_buttons module quickly. They define a completely custom form widget for their functionality inworkflow_buttons/src/Plugin/Field/FieldWidget/WorkflowButtonsWidget.php. Lightning Scheduler overrides somewhat the core moderation state widget here: lightning_scheduler/lightning_scheduler.module lightning_scheduler_field_widget_info_alter()and defines its custom logic for the widget here: lightning_scheduler/src/Plugin/Field/FieldWidget/ModerationStateWidget.php. For this to work, the 2 widget's code and logic must be combined into 1 new widget.

Production build 0.71.5 2024