Feature: #108831 - Extend workspace preview links to all records
See forge#108831
Description
The Workspaces module previously generated shareable preview links
(with ADMCMD_ token) for pages only. This change extends the functionality
to support any record type.
The preview page for non-page records is determined via existing user TSconfig options:
options.workspaces. preview Page Id.<table> TCEMAIN.preview.<table>. preview Page Id
Additional query parameters can be configured via:
TCEMAIN.preview.<table>. field To Parameter Map TCEMAIN.preview.<table>. additional Get Parameters
Example configuration for a custom record type:
TCEMAIN.preview.tx_myext_domain_model_item {
previewPageId = 42
fieldToParameterMap {
uid = tx_myext_pi1[item]
}
additionalGetParameters {
type = 9818
}
}
Copied!
Impact
The QR code and shareable link button in the Workspaces module now work for all record types that have a preview configuration. This allows editors to share workspace previews of custom records with colleagues or clients without requiring them to have a backend login.