#111292Compare every page preview with the live page and merge the workspace preview into the preview bar
Description
Problem
The workspace preview is a page of its own (route workspace_previewcontrols) with its own top bar. It has no simulation (date, hidden pages and content, frontend login), and editors outside a workspace cannot compare a preview with the live page at all. Since #110664 every backend preview runs on the preview page with a bar above the frame, so two different preview pages exist.
Proposal
- The preview page of the backend is the only preview page. Its bar gets a menu “Compare with live”: Off, Slider, Side by side, Stacked. Off is the default, the chosen mode is stored per backend user.
- The live frame shows the page as a visitor sees it now: no workspace, no hidden records, current date, no frontend login. It follows the preview to other pages and keeps the scroll position at the same element, matched by its HTML id, or at the same percentage.
- The live frame of the slider keeps the full height and is clipped, so its content does not reflow; the divider between the frames can be dragged or moved with the keyboard.
- In a workspace the bar shows the stage, publish and discard buttons, added by EXT:workspaces through a new PSR-14 event
BeforePreviewPageRenderedEvent. The former routeworkspace_previewcontrolsredirects to the preview page. The bar shows no frontend address any more. - New Page TSconfig
options.preview.compareModes(slider, columns, rows);workspaces.splitPreviewModesis deprecated and still read as fallback.
Notes
Follow-up of #110664. Depends on #111290 (publishing from the workspace preview).
Reviews 1
History 03
-
Gerrit Code Review pushed patch set 2 for main to change 97236 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-30T14:19:23+00:00" > 10/30/26, 14:19 </span> -
Gerrit Code Review pushed patch set 3 for main to change 97236 <span data-processor="relativetime" data-value="2026-11-09T16:51:38+00:00" > 11/09/26, 16:51 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97236 <span data-processor="relativetime" data-value="2026-11-10T10:22:52+00:00" > 11/10/26, 10:22 </span>