dev-master
9999999-dev https://octobercms.com/plugin/rainlab-mailchimpMailchimp plugin for October CMS
MIT
The Requires
- php >=5.5.9
- composer/installers ~1.0
by Samuel Georges
by Alexey Bobkov
mailchimp october octobercms
Mailchimp plugin for October CMS
MailChimp integration plugin, (*1)
This plugin implements the MailChimp subscription form functionality for the OctoberCMS., (*2)
In order to use the plugin you need to get the API key from your MailChimp account., (*3)
You can put the MailChimp signup form on any front-end page. Add the MailChimp Signup Form component to a page or layout. Click the added component and paste your MailChimp list identifier in the MailChimp List ID field. Close the Inspector and save the page., (*4)
The simplest way to add the signup form is to use the component's default partial and the {% component %}
tag. Add it to a page or layout where you want to display the form:, (*5)
{% component 'mailSignup' %}
If the default partial is not suitable for your website, replace the component tag with custom code, for example:, (*6)
<form id="subscribe-form" data-request="mailSignup::onSignup" data-request-update="'mailSignup::result': '#subscribe-form'" > <input type="text" name="email" placeholder="Newsletter subscription"> <input type="submit" class="btn btn-default" value="Subscribe"/> </form>
The example uses the standard partial mailSignup::result for displaying the subscription confirmation message. If you don't like the standard message you can create your own partial in your theme and specify its name in the data-request-update
attribute. The default partial is located in plugins/rainlab/mailchimp/components/signup/result.htm
., (*7)
More fields can be included in the subscription request:, (*8)
<input type="text" name="merge[FNAME]" placeholder="First Name" /> <input type="text" name="merge[LNAME]" placeholder="Last Name" />
That's it!, (*9)
Mailchimp plugin for October CMS
MIT
mailchimp october octobercms