#81252Make use of »TCEMAIN.preview« in all preview links
Description
TYPO3 has 3 different methods/places to generate preview links.
- Module „List“ → Table “Table Content“ → Button “View webpage”
- Module »Page« or »List« → Context Menu on Icon of a content element → Selection »Show«
- Module »Page« or »List« → Edit a content element → Button »Save and view page«
Only one of them, the »Save and view page« Button while editing items, is nicely configurable with TSconfig:
> https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/TCEmain/Index.html#preview
> Configure preview link generated for the save+view button in Backend. This allows to have different preview URLs depending on the record type. Common usecase is to have previews for blog or news records, but this feature now allows you to define a different preview page for content elements as well, which might be handy if those are stored in a sysfolder.
This configuration option is very nice. It would be nice if it could be used in all places which generate preview links.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 2
History 9
-
Dan Kleine (Untenzu) changed Related to #81250 <span data-processor="relativetime" data-value="2017-05-18T09:35:48+00:00" > 05/18/17, 09:35 </span>
-
Dan Kleine (Untenzu) commented <span data-processor="relativetime" data-value="2017-05-18T10:02:02+00:00" > 05/18/17, 10:02 </span>
-
Daniel Windloff changed Duplicates #77581 <span data-processor="relativetime" data-value="2017-05-18T19:44:53+00:00" > 05/18/17, 19:44 </span>
-
Christian Weiske changed Related to #66370 <span data-processor="relativetime" data-value="2017-05-19T13:05:30+00:00" > 05/19/17, 13:05 </span>
-
Susanne Moog changed category <span data-processor="relativetime" data-value="2018-01-24T20:02:12+00:00" > 01/24/18, 20:02 </span>
-
Benni Mack commented <span data-processor="relativetime" data-value="2022-01-10T19:06:07+00:00" > 01/10/22, 19:06 </span>
Note to self: Currently implemented in EditDocumentController. Should be extracted into its own functionality / class, so it can be re-used in other contexts.
-
Benni Mack commented and changed status
NewResolved <span data-processor="relativetime" data-value="2025-06-26T15:15:08+00:00" > 06/26/25, 15:15 </span>Applied in changeset commit:e7179b05f9e32d0952204359fe19d255eb55a79f.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:36:44+00:00" > 12/02/25, 14:36 </span>
The »TCEMAIN.preview« setting should then also be extend with a way to set anchors.
eg:
TCEMAIN.preview { <table name> { previewPageId = 123 anchorPrefix = c anchorField = uid } }