Project

General

Profile

Actions

Feature #99723

closed

Make Site Settings available in the form framework

Added by Josef Glatz over 1 year ago. Updated 3 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2023-01-26
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
form,yaml,sitesettings,site
Complexity:
Sprint Focus:

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
Actions #1

Updated by Benni Mack about 1 year ago

  • Target version changed from 12 LTS to Candidate for Major Version
Actions #2

Updated by Georg Ringer 7 days ago

  • Status changed from New to Closed

this is already possible with

condition: 'site("settings").get("myVariable") == "xx"'

Actions #3

Updated by Gerrit Code Review 5 days 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

Actions #4

Updated by Gerrit Code Review 3 days 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

Actions #5

Updated by Garvin Hicking 3 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF