#24

Product support

Visit this product's website for support.

Categories

  • Marketing

Configuring

In order to use the plugin you need to get the API key from your MailChimp account.

  1. In the OctoberCMS back-end go to the System / Settings page and click the MailChimp link.
  2. Paste the API key in the MailChimp API key field.

Creating the Signup form

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.

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:

{% component 'mailSignup' %}

If the default partial is not suitable for your website, replace the component tag with custom code, for example:

<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.

  • Found the plugin useful on 24 Oct, 2016

    Works very well... but why is there no "Configure Mailchimp API number" specific permission ?

    How can I make an admin group not able to change this API number ?

  • Found the plugin useful on 27 Sep, 2016

    Frithjof Gressmann it works in partials as well, you just have to add component to the layout and move the code to partial.

  • Found the plugin useful on 5 Jul, 2016

    Good one, however, it would be cool if signup form would work in partials as well.

  • Found the plugin useful on 21 Feb, 2016

    Good work

  • Found the plugin useful on 19 Jan, 2016

    Great plugin! Thanks for all the hard work.

  • Found the plugin useful on 28 May, 2015

    Works as expected!

  • Found the plugin useful on 2 Sep, 2014

    With few modifications this is a very useful plugin. Thanks.

1.0.2

Minor improvements to the code

Feb 13, 2015

1.0.1

Initialize plugin

May 12, 2014