swordfox/silverstripe-userform-mailchimpfield
最新稳定版本:2.2.4
Composer 安装命令:
composer require swordfox/silverstripe-userform-mailchimpfield
包简介
Adds a custom field to UserForms which allows you to select a list from MailChimp and subscribe on submission.
README 文档
README
#MailChimp UserForm Field Adds a custom field to UserForms which allows you to select a list from MailChimp and subscribe on submission.
Also allows additional merge_fields to be added for each field in the form.
Installation
Via composer
composer require swordfox/silverstripe-userform-mailchimpfield
Configuration
To connect to your MailChimp field you will need to set two fields in your config.yml.
Swordfox\UserForms\EditableMailChimpField:
api_key: 'API KEY GOES HERE'
^ These setting can be found in client settings area in MailChimp.
Customisation
You can also change what type of field is actually used on the UserForm. By Default it's a checkbox field. You can change this via your config.yml OR via the CMS per form.
Extensions
There are a few extension hooks which can be useful to handle data before and after saving throughout the process.
$this->extend('beforeValueFromData', $data)$this->extend('afterValueFromData', $data)$this->extend('updateLists', $data)
统计信息
- 总下载量: 729
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-10-16