This module allows you to create and update Mailchimp list subscriptions via a Silverstripe app/website.
It supports:
It doesn't support:
Further documentation beyond the basics is available
Example project configuration:
---
Name: app-mailchimp
After:
- '#silverstripe-chimple'
---
NSWDPC\Chimple\Models\MailchimpConfig:
# override the XHR submission setting for the global form only
use_xhr: true|false
# account API key
api_key: '<api key>'
# default list id
list_id: '<list id>'
Use a spam protection module to block spammy submission attempts on the form. The NSWDPC reCAPTCHAv3 module is a good option.
If a module is installed, the subscription form will detect this and enable the default spam protector on the form.
All forms in Silverstripe set cache control headers to a non-cacheable state, unless they use GET as a form submission method and the CSRF token is turned off.
To set cache control headers for a cacheable state:
use_get
and disable_security_token
on the controllerNote that other forms included in the page may disable a cacheable state.
See composer.json
The only supported method of installation is via composer:
composer require nswdpc/silverstripe-chimple
BSD-3-Clause
See License
NSW DPC Digital
This module is a combination of work contributed to various projects over the years by the NSW DPC Digital team and Symbiote.
Please raise bugs (with instructions on how to reproduce), questions and feature requests on the Github bug tracker
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem