Issue Feature Resolved

#109865Add "Publish" button to frontend workspace preview (parity with backend module)

Philipp Kitzberger 05/23/26, 12:02 updated 09/08/26, 14:10

Description

In the backend Workspaces module, users with publish permission can publish records directly from any stage via the mass action and selection action dropdowns — unless restricted by the publish_access flag PUBLISH_ACCESS_ONLY_IN_PUBLISH_STAGE.

The frontend comparison preview (PreviewController / StageButtons.html) does not offer this. It only shows “Send to next stage”, “Send to previous stage”, and “Discard”. Publishing is only reachable by advancing records through all stages until “Ready to publish”, at which point the next-stage button becomes “Publish”.

Proposal: Add a dedicated “Publish” button to the frontend preview toolbar, visible when:
  • The user has publish permission (WorkspacePublishGate::isGranted())
  • The workspace’s publish_access does not have PUBLISH_ACCESS_ONLY_IN_PUBLISH_STAGE set

This would bring the frontend preview in line with the backend module behavior, where publishing from any stage is already possible. The existing PUBLISH_ACCESS_ONLY_IN_PUBLISH_STAGE setting would naturally control whether the button appears, just as it already does for the backend mass action dropdown.

Affected files:
  • Classes/Controller/Remote/ActionHandler.php (updateStageChangeButtons())
  • Resources/Private/Templates/Preview/Ajax/StageButtons.html
  • Resources/Public/JavaScript/preview.js

Reviews 2

History 213

  1. Maike Kiebele commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-08T14:10:13+00:00" > 09/08/26, 14:10 </span>

    Applied in changeset commit:a4278ad1fa0f9d7189bb4b849398dd25b0484831.