Bug #86703
closedPage's data partly not available via getText if page has form CE
0%
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}.
Updated by Tymoteusz Motylewski about 6 years ago
- Category set to Form Framework
Updated by Georg Ringer about 6 years ago
- Related to Bug #86733: Data in page is invalid if plugin exits added
Updated by Georg Ringer about 6 years ago
- Related to Bug #86763: Backend Layout Slide not working in FLUIDTEMPLATE Variables after Upgrade to 9.5.0 added
Updated by Riccardo De Contardi almost 6 years ago
- Status changed from New to Needs Feedback
I am currently not able to reproduce it with TYPO3 10.0.0-dev (latest master), could you confirm?
Thank you
Updated by Benjamin Robinson almost 6 years ago
I sorry, I don't have a 10.0.0-dev testing environment. Would it help if i set it up to confirm or has anyone else the possibility to check?
Updated by Riccardo De Contardi almost 6 years ago
Not able to reproduce it on 9.5.4, either
Updated by Benjamin Robinson almost 6 years ago
I can confirm that: I can not reproduce it on 9.5.4, too. It looks like the issue is solved.
Maybe with Change 58661: https://review.typo3.org/#/c/58661/ ("Avoid overwriting page context in TSFE->cObj by f:cObject") in 9.5.2?
Updated by Riccardo De Contardi almost 6 years ago
@Ben Robinson Thank you for your answer! Do you think that this issue could be closed, or is there still work to do here? Thank you for your reply.
Updated by Benjamin Robinson almost 6 years ago
@Riccardo De Contardi:
Yes this can be closed, but it would be nice to set a relation to the issue which has resolved this bug. I guess it is https://forge.typo3.org/issues/86979 (Status: resolved).
Updated by Riccardo De Contardi almost 6 years ago
- Related to Bug #86979: stdWrap fieldRequired/insertData sometimes not working as expected since TYPO3 9 LTS added
Updated by Riccardo De Contardi almost 6 years ago
- Status changed from Needs Feedback to Closed
No problem. Sorry for the delayed reply. Have a nice day and thanks for your answer.