Bug #86733

Data in page is invalid if plugin exits

Added by Sascha Wilking about 2 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-10-24
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If I have a page which contains a plugin, the "data" attribute in FLUIDTEMPLATE contains the plugin data from tt_content instead of the page data. Also the same in Typoscript.

For example:

page.10 = FLUIDTEMPLATE
page.10.variables.subtitle = field : subtitle

Works fine, if no plugin on page is avalailable. Otherwise in the field list are tt_content elements, i.E. field : bodytext.

A debug message in the FLUIDTEMPLATE with the array "data" show all fields from page table if no plugin is available on the page. Otherwise it shows all data from the tt_content table.

I've tested it also with backend layouts:

lib.backendLayout = CASE
lib.backendLayout {
key.field = backend_layout
key.ifEmpty.data = levelfield:-1, backend_layout_next_level, slide
default = TEXT
default.value = default
pagets__1 = TEXT
pagets__1.value = 1Cols
pagets__2 = TEXT
pagets__2.value = 2Cols
}

On one of my subpages I use the backend_layout "pagets__1", on the parent page the setting is backend_layout=pagets__1 and backend_layout_next_level=pagets__2.

If a plugin exists on my subpage, the backend_layout "pagets__1" was ignored and the backend_layout_next_level from the parent was received. Without the plugin, everything works fine.


Related issues

Related to TYPO3 Core - Bug #86703: Page's data partly not available via getText if page has form CE New 2018-10-20
Related to TYPO3 Core - Bug #86763: Backend Layout Slide not working in FLUIDTEMPLATE Variables after Upgrade to 9.5.0 New 2018-10-26

History

#1 Updated by Sascha Wilking about 1 month ago

Could be the same problem as https://forge.typo3.org/issues/86703

#2 Updated by Georg Ringer about 1 month ago

  • Related to Bug #86703: Page's data partly not available via getText if page has form CE added

#3 Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58832

#4 Updated by Gerrit Code Review about 1 month ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58832

#5 Updated by Georg Ringer about 1 month ago

  • Related to Bug #86763: Backend Layout Slide not working in FLUIDTEMPLATE Variables after Upgrade to 9.5.0 added

Also available in: Atom PDF