Actions
Bug #106317
openForm element content element: tranlated element not used and variant condition on site language doesn’t work
Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2025-03-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I inserted a form element type content element on a form. Default language is german, additional language is english. On the english page I still got the german element in frontend. I tried to solve that via a variant condition, but did not work:
label: Inhaltselement
properties:
contentElementUid: '49787'
type: ContentElement
identifier: contentelement-1
variants:
-
identifier: language-variant-1
condition: 'siteLanguage("locale") == "de_DE.UTF-8"'
renderingOptions:
enabled: false
properties:
contentElementUid: '49961'
Also siteLanguage("getTypo3Language") == "default" or similar did not work.
The only thing that worked was overriding it with Typoscript:
[siteLanguage("languageId") == "1"] plugin.tx_form.settings { formDefinitionOverrides { identifier { renderables { 0 { renderables { 0 { properties { contentElementUid = 49961 } } } } } } } } [global]
So there are two issues:
- Translated element will not be used
- Variant condition on site language doesn’t work
No data to display
Actions