asecondwill / mailchimp-subscription-field
A field for Silverstripe Userforms to send submissions to Mailchimp Lists.
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Type:silverstripe-module
Requires
- drewm/mailchimp-api: master
- silverstripe/cms: ~3.5
- silverstripe/framework: ~3.5
This package is not auto-updated.
Last update: 2025-03-30 04:43:24 UTC
README
A Field for UserForms (EditableFormField) that'll let you add Subscribers to a MailChimp list with groups.
Initially a fork/ re-write of https://github.com/lerni/EditableMailchimpSubscriptionField
Installation
The easiest way is to use composer:
composer require asecondwill/mailchimp-subscription-field
If you just clone/download this repository make sure you have the required packages also installed.
"require": {
"silverstripe/userforms": "dev-master",
"drewm/mailchimp-api": "dev-master"
},
Add your MailChimp API-Key per _config
`NewsletterSignup::set_api_key('...');`
Run dev/build
afterwards.
Adding a Field to a form
Add a Newsletter signup field to your user form. Save your form to save that.
Click edit for that field. Choose a list from the dropdown. Save to set that.
Now fill in the other fields as you need them.
Status
The module is actively being developed. Suggestions, pull requests and issues are welcome.
How to use
Currently the Fieldnames in MailChimp and the Fieldnames in the Form need to match and you still need to map manually in the options of the field.