Skip to content
Snippets Groups Projects
FinisherSetupBE.yaml 7.7 KiB
Newer Older
TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          finishersDefinition:
            MailToSenderFinisher:
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
                    extension: 'sg_mail'
                    template: 'contact_user'
                    mailTo: ''
                    subject: ''
                    userName: ''
                    replyTo: ''
                    cc: ''
                    bcc: ''
            MailToReceiverFinisher:
              implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
              formEditor:
                iconIdentifier: 't3-form-icon-finisher'
                label: 'A Label that seems to be never used...'
                predefinedDefaults:
                  options:
                    extension: 'sg_mail'
                    template: 'contact_admin'
                    mailTo: ''
                    mailFrom: ''
                    subject: ''
                    userName: ''
                    replyTo: ''
                    cc: ''
                    bcc: ''
          formElementsDefinition:
            Form:
              formEditor:
                editors:
                  900:
                    # Extend the finisher dropdown in the menu
                    selectOptions:
                      25:
                        value: 'MailToSenderFinisher'
                        label: 'Mail Templates - Mail to the website user'
                        value: 'MailToReceiverFinisher'
                        label: 'Mail Templates - E-Mail to the website admin'
                propertyCollections:
                  finishers:
                    # define the finishers field
                    25:
                      identifier: 'MailToSenderFinisher'
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
                          label: "Mail Templates - E-Mail to the website user"
                          identifier: 'extension'
                          templateName: 'Inspector-TextEditor'
                          label: 'Extension key'
                          propertyPath: 'options.extension'
                        120:
                          identifier: 'template'
                          templateName: 'Inspector-TextEditor'
                          label: 'Unique Template name'
                          propertyPath: 'options.template'
                          enableFormelementSelectionButton: true
                        130:
                          identifier: 'mailTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'The email address of the website user'
                          propertyPath: 'options.mailTo'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'NotEmpty'
                            20: 'FormElementIdentifierWithinCurlyBracesInclusive'
                          identifier: 'mailFrom'
                          templateName: 'Inspector-TextEditor'
                          label: 'The email address of the website'
                          propertyPath: 'options.mailFrom'
                          identifier: 'subject'
                          templateName: 'Inspector-TextEditor'
                          propertyPath: 'options.subject'
                          identifier: 'userName'
                          templateName: 'Inspector-TextEditor'
                          label: 'The name of the website user'
                          propertyPath: 'options.userName'
                          enableFormelementSelectionButton: true
                          propertyValidators:
                            10: 'NotEmpty'
                            20: 'FormElementIdentifierWithinCurlyBracesInclusive'
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'The reply to address of the E-Mail'
                          propertyPath: 'options.replyTo'
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
                          label: 'The cc address of the E-Mail'
                          propertyPath: 'options.cc'
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
                          label: 'The bcc address of the E-Mail'
                          propertyPath: 'options.bcc'
                    35:
                      identifier: 'MailToReceiverFinisher'
                      editors:
                        __inheritances:
                          10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                        100:
                          label: "Mail Templates - E-Mail to the website admin"
                          identifier: 'extension'
                          templateName: 'Inspector-TextEditor'
                          label: 'Extension key'
                          propertyPath: 'options.extension'
                        120:
                          identifier: 'template'
                          templateName: 'Inspector-TextEditor'
                          label: 'Template key'
                          propertyPath: 'options.template'
                          enableFormelementSelectionButton: true
                        130:
                          identifier: 'mailTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'The email address of the website admin'
                          propertyPath: 'options.mailTo'
                          identifier: 'mailFrom'
                          templateName: 'Inspector-TextEditor'
                          label: 'The email address of the website'
                          propertyPath: 'options.mailFrom'
                          identifier: 'subject'
                          templateName: 'Inspector-TextEditor'
                          propertyPath: 'options.subject'
                          identifier: 'replyTo'
                          templateName: 'Inspector-TextEditor'
                          label: 'The "reply to" address of the E-Mail'
                          propertyPath: 'options.replyTo'
                          identifier: 'cc'
                          templateName: 'Inspector-TextEditor'
                          label: 'The cc address of the E-Mail'
                          propertyPath: 'options.cc'
                          identifier: 'bcc'
                          templateName: 'Inspector-TextEditor'
                          label: 'The bcc address of the E-Mail'
                          propertyPath: 'options.bcc'
              renderingOptions:
                translation:
                  translationFile:
                    90: 'EXT:project_theme/Resources/Private/Language/forms.xlf'