Project

General

Profile

Actions

Feature #81252

open

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

Added by Dan Kleine (Untenzu) over 7 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2017-05-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #81250: Preview link of content element misses the anchor in some casesClosed2017-05-18

Actions
Related to TYPO3 Core - Task #66370: Add generic preview URL generator APIClosedMarkus Klein2015-04-10

Actions
Is duplicate of TYPO3 Core - Feature #77581: List module: Add preview button for recordsNew2016-08-22

Actions
Actions #1

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
Actions #2

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
  }
}

Actions #3

Updated by Daniel Windloff over 7 years ago

  • Is duplicate of Feature #77581: List module: Add preview button for records added
Actions #5

Updated by Christian Weiske over 7 years ago

  • Related to Task #66370: Add generic preview URL generator API added
Actions #6

Updated by Susanne Moog almost 7 years ago

  • Category set to DataHandler aka TCEmain
Actions #7

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.

Actions

Also available in: Atom PDF