Project

General

Profile

Actions

Feature #99723

open

Make Site Settings available in the form framework

Added by Josef Glatz about 1 year ago. Updated 12 months ago.

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

0%

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 12 months ago

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

Also available in: Atom PDF