Project

General

Profile

Actions

Bug #86703

closed

Page's data partly not available via getText if page has form CE

Added by Benjamin Robinson over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2018-10-20
Due date:
% Done:

0%

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

Description

Some getText-Values are not available in 9.5.0 if there is a form content element (sysext:form) on the site.
How to reproduce:

Set the layout of an empty page to "Layout 2" and render with following TS:

page = PAGE
page{
  bodyTagCObject = TEXT
  bodyTagCObject.value = <body id="page_{field:uid}" class="layout_{field:layout}">
  bodyTagCObject.insertData = 1
  5 = TEXT
  5.value = Test: page_{field:uid} layout_{field:layout}
  5.insertData = 1
  10 =< styles.content.get
}

Result in FE:

[...]
<body id="page_1" class="layout_2">
Test: page_1 layout_2
[...]

Now create a "form" content element on this site.
Result in FE:

[...]
<body id="page_1" class="layout_0">
Test: page_1 layout_2
[...]

The ID is always correct. The layout is correct in page.5 in both cases, but fails in bodyTagCObject.
I had the same issues with backend_layout in bodyTagCObject with form elements.
The same happend when I tried to use htmlTag_stdWrap.
I guess form resets or overrides some vars.

A workaround is to use {page:layout} instead of {field:layout}.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #86733: Data in page is invalid if plugin exitsClosed2018-10-24

Actions
Related to TYPO3 Core - Bug #86763: Backend Layout Slide not working in FLUIDTEMPLATE Variables after Upgrade to 9.5.0Closed2018-10-26

Actions
Related to TYPO3 Core - Bug #86979: stdWrap fieldRequired/insertData sometimes not working as expected since TYPO3 9 LTSClosed2018-11-22

Actions
Actions

Also available in: Atom PDF