webiny-app-mailchimp

1.0.2 • Public • Published

webiny-app-mailchimp

code style: prettier PRs Welcome

Enables inserting Mailchimp newsletter signup forms on your site.

Install

npm install --save webiny-app-mailchimp

Or if you prefer yarn:

yarn add webiny-app-mailchimp

Note: the webiny-api-mailchimp is also required.

Setup

To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation.

Admin

import mailchimpPlugins from "webiny-app-mailchimp/admin"
import { registerPlugins } from "webiny-plugins";

registerPlugins(...mailchimpPlugins);

Enables management of Mailchimp settings, which can be accessed via Settings section in the main menu. You will paste your Mailchimp API key here (this is required in order for the app to work properly). Additionally, this will also register Mailchimp element in CMS editor, which will enable you to insert newsletter signup forms in your pages. The element will be registered under the "Form" element category.

You can optionally register one or more newsletter signup form plugins (type: cms-element-mailchimp-component).

{
        type: "cms-element-mailchimp-component",
        name: "cms-element-mailchimp-component-test1",
        title: "Test newsletter form",
        component: MailchimpTestForm
}

An example component can be found here.

Site

import mailchimpPlugins from "webiny-app-mailchimp/render"
import { registerPlugins } from "webiny-plugins";

registerPlugins(mailchimpPlugins);

This enables rendering of Mailchimp newsletter signup form in your public website.

/webiny-app-mailchimp/

    Package Sidebar

    Install

    npm i webiny-app-mailchimp

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    135 kB

    Total Files

    29

    Last publish

    Collaborators

    • webiny