Issue Feature Closed

#81252Make use of »TCEMAIN.preview« in all preview links

Dan Kleine (Untenzu) 05/18/17, 09:35 updated 12/02/25, 14:36

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.

History 9

  1. Dan Kleine (Untenzu) commented <span data-processor="relativetime" data-value="2017-05-18T10:02:02+00:00" > 05/18/17, 10:02 </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
      }
    }
  2. 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.

  3. Benni Mack commented and changed status New Resolved <span data-processor="relativetime" data-value="2025-06-26T15:15:08+00:00" > 06/26/25, 15:15 </span>

    Applied in changeset commit:e7179b05f9e32d0952204359fe19d255eb55a79f.