mhuber84/form-mailchimp

TYPO3 CMS 扩展,用于连接 EXT:form 到 Mailchimp

安装: 43

依赖项: 0

建议者: 0

安全: 0

星标: 0

分支: 0

类型:typo3-cms-extension

3.0.0 2024-08-29 11:59 UTC

This package is auto-updated.

Last update: 2024-08-29 09:59:49 UTC


README

此扩展为 TYPO3 sysext "form" 添加了一个完成器,用于将用户注册到您的 Mailchimp 受众。

添加表单完成器时,您可以在表单中选择电子邮件字段和新闻通讯字段,并定义 Mailchimp 列表 ID。您还可以定义标签。如果用户提交表单,则他们将被添加到您的 Mailchimp 受众。

安装

  1. 使用 composer require mhuber84/form-mailchimp 安装

  2. 包含 TypoScript 检查是否覆盖了您的设置,并在必要时进行调整!:-)

  3. 在您的表单中包含完成器

  4. 在扩展管理器中配置 API

包含 Mailchimp 完成器的示例表单

type: Form
identifier: newsletter_registration
label: 'Newsletter registration'
prototypeName: standard
renderingOptions:
  submitButtonLabel: Send
finishers:
  -
    options:
      mailchimpListId: 'YOUR-MAILCHIMP-LIST-ID'
      email: '{email}'
      newsletter: '{newsletter}'
      fieldMapping:
        FNAME: '{firstname}'
        LNAME: '{lastname}'
      mailchimpTags: 'Tag1, Tag2'
    identifier: Mailchimp
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: ''
    renderables:
      -
        type: GridRow
        identifier: gridrow-1
        label: 'Grid: Row'
        renderables:
          -
            type: Fieldset
            identifier: fieldset-1
            label: ''
            renderables:
              -
                defaultValue: ''
                type: Text
                identifier: firstname
                label: Firstname
              -
                defaultValue: ''
                type: Text
                identifier: lastname
                label: Lastname
              -
                defaultValue: ''
                type: Email
                identifier: email
                label: E-Mail
                properties:
                  fluidAdditionalAttributes:
                    required: required
                  validationErrorMessages:
                    -
                      code: 1221560910
                      message: Required
                    -
                      code: 1221560718
                      message: Required
                    -
                      code: 1347992400
                      message: Required
                    -
                      code: 1347992453
                      message: Required
                validators:
                  -
                    identifier: EmailAddress
                  -
                    identifier: NotEmpty
              -
                type: Checkbox
                identifier: newsletter
                label: 'Newsletter'

作者

Marco Huber@mhuber84@troet.cafemail@marco-huber.de

请随时贡献并提交拉取请求或在此 https://gitlab.com/mhuber84/form-mailchimp 上创建一个问题