Feature #81252
openMake use of »TCEMAIN.preview« in all preview links
0%
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.
Updated by Dan Kleine (Untenzu) over 7 years ago
- Related to Bug #81250: Preview link of content element misses the anchor in some cases added
Updated by Dan Kleine (Untenzu) over 7 years ago
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 } }
Updated by Daniel Windloff over 7 years ago
- Is duplicate of Feature #77581: List module: Add preview button for records added
Updated by Daniel Windloff over 7 years ago
Updated by Christian Weiske over 7 years ago
- Related to Task #66370: Add generic preview URL generator API added
Updated by Susanne Moog almost 7 years ago
- Category set to DataHandler aka TCEmain
Updated by Benni Mack almost 3 years ago
Note to self: Currently implemented in EditDocumentController. Should be extracted into its own functionality / class, so it can be re-used in other contexts.