Project

General

Profile

Actions

Feature #82993

open

Add custom processing API for TCEMAIN.preview

Added by Moritz Ahl about 7 years ago. Updated over 4 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2017-11-14
Due date:
% Done:

0%

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

Description

To preview records, TCEmain.preview can be configured for any record type. Currently, one pid can be configured which points to a page holding a plugin which will display the record in frontend. That works fine.

However, sometimes you need different pids or other parameters which depend on the record itself or even related records. Currently, this cannot be achieved because TCEMAIN.preview lacks the possibility to build the link dynamically.

A typical scenario is preview of a news record whose detail pid depends on the (first) associated news category which holds the pid of the corresponding detail page.

To solve scenarios like this, my proposal is to add a property in TCEMAIN.preview which can point to a custom processing function. This function should get all nescessary information to access the data of the specific record to be previewed. It then returns the link to the frontend or (if you like that better) only a configuration which is then passed to the uri builder or typolink for postprocessing.


Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Moritz Ahl about 7 years ago

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

Updated by Andreas Kießling over 4 years ago

I'd like that feature very much! Is there any solution (extension/patch) available for 9.5/10.4?

Actions

Also available in: Atom PDF