Feature #81252

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

Added by Dan Untenzu over 2 years ago. Updated over 1 year ago.

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

0%

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

Related to TYPO3 Core - Bug #81250: Preview link of content element misses the anchor in some cases New 2017-05-18
Related to TYPO3 Core - Task #66370: Add generic preview URL generator API Closed 2015-04-10
Duplicates TYPO3 Core - Feature #77581: List module: Add preview button for records New 2016-08-22

History

#1 Updated by Dan Untenzu over 2 years ago

  • Related to Bug #81250: Preview link of content element misses the anchor in some cases added

#2 Updated by Dan Untenzu over 2 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
  }
}

#3 Updated by Daniel Windloff over 2 years ago

  • Duplicates Feature #77581: List module: Add preview button for records added

#5 Updated by Christian Weiske over 2 years ago

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

#6 Updated by Susanne Moog over 1 year ago

  • Category set to DataHandler aka TCEmain

Also available in: Atom PDF