Project

General

Profile

Actions

Bug #96667

closed

Save and preview button uses wrong pagets

Added by Philipp Kitzberger over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2022-01-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

When using the save+preview button for a non-pages record the global pagets is being used instead of the one of the current page/folder.

I've got this global PageTS:

TCEMAIN.preview {
  tx_news_domain_model_news {
    previewPageId = 123
    useDefaultLanguageRecord = 0
    fieldToParameterMap {
      uid = tx_news_pi1[news_preview]
    }
    additionalGetParameters {
      tx_news_pi1.controller = News
      tx_news_pi1.action = detail
    }
  }
}

And for a certain folder there's this local override:

TCEMAIN.preview.tx_news_domain_model_news.previewPageId = 666

Hitting the save+preview button in that folder leads to the page 123 being opened instead of 666.

It might be related to #92409 but maybe not.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #92409: Regression with Save and Preview ButtonAccepted2020-09-25

Actions
Related to TYPO3 Core - Bug #95860: TCEMAIN.preview of root page overrides TCEMAIN.preview of sysfolder once the Button "Preview" is clickedClosed2021-11-03

Actions
Related to TYPO3 Core - Bug #98598: Preview is not working for RecordsClosed2022-10-13

Actions
Actions

Also available in: Atom PDF