FormSetup.yaml 2.05 KB
Newer Older
David Steeb's avatar
David Steeb committed
1 2 3 4 5
TYPO3:
  CMS:
    Form:
      persistenceManager:
        allowedExtensionPaths:
6
          10: EXT:site_t3demo/Resources/Private/Plugins/Form/Forms/
David Steeb's avatar
David Steeb committed
7 8 9 10 11 12 13 14 15
      prototypes:
        standard:
          formElementsDefinition:
            # remove field types we do not show or have no custom template/styling for
            FileUpload: null
            ImageUpload: null
            AdvancedPassword: null
            DatePicker: null
            ContentElement: null
16 17 18 19 20
            # remove responsive options/field width from text input fields (not used)
            Text:
              formEditor:
                editors:
                  700: null
David Steeb's avatar
David Steeb committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
            # reset the grid class to only use 2 or 1 column
            GridRow:
              properties:
                elementClassAttribute: 'b_form__row'
                gridColumnClassAutoConfiguration:
                  viewPorts:
                    xs:
                      classPattern: 'b_form__col'
                    sm: null
                    md: null
                    lg: null
            Form:
              formEditor:
                editors:
                  900:
                    # remove finishers not needed or wanted for demo project
                    selectOptions:
                      # email finishers: we do not want to send out any emails
                      20: null
                      30: null
                      # "delete upload": no file uploads possible
                      50: null
              renderingOptions:
                templateRootPaths:
                  20: 'EXT:site_t3demo/Resources/Private/Plugins/Form/Templates/'
                partialRootPaths:
                  20: 'EXT:site_t3demo/Resources/Private/Plugins/Form/Partials/'
                layoutRootPaths:
                  20: 'EXT:site_t3demo/Resources/Private/Plugins/Form/Layouts/'
50
            # remove honeypot from visible area for rtl languages as well
51 52 53
            Honeypot:
              properties:
                styleAttribute: 'position: absolute; margin-top: 0; margin-bottom: 0; margin-block: -999em 0;'