Feature #99723
closedMake Site Settings available in the form framework
100%
Description
A] Feature description¶
It would be a huge benefit if an integrator can use TYPO3 site settings within the YAML form file like it's already possible in TypoScript and PageTSconfig.
1. to replace simple values¶
like a pageUid
2. to make it usable within symfony expressions¶
If you see the following example uses the siteLanguage locale. But depending on the scenario checking a site setting would be a real benefit.
B] Example (without this implemented feature)¶
-
type: Fieldset
identifier: fieldset-checkbox
label: ''
renderables:
-
type: Checkbox
identifier: legalNotice
label: 'AGB der TYPO3'
properties:
elementClassAttribute: form-check-input
elementDescription: ''
fluidAdditionalAttributes:
required: required
pageUid: '2970'
linkText: Datenschutzerklärung
companyName: 'TYPO3 AG'
variants:
-
identifier: variant-german
condition: 'siteLanguage("locale") == "de_DE.utf8,de_DE.UTF-8,de_DE,de"'
properties:
pageUid: '1977'
companyName: 'TYPO3 GmbH'
validators:
-
identifier: NotEmpty
Todos¶
- Are parts of this already possible?
- Extending the form framework to make it possible writing less code or even less duplicated form definitions would be awesome
Updated by Benni Mack over 1 year ago
- Target version changed from 12 LTS to Candidate for Major Version
Updated by Georg Ringer 5 months ago
- Status changed from New to Closed
this is already possible with
condition: 'site("settings").get("myVariable") == "xx"'
Updated by Gerrit Code Review 5 months ago
- Status changed from Closed to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84896
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84956
Updated by Garvin Hicking 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6e7dd4808bb7992ebaf838e0f3acad141f193fb3.