2017 © Pedro Peláez
 

grav-plugin grav-plugin-mailchimp

Add MailChimp subscribe form action support

image

aaronhipple/grav-plugin-mailchimp

Add MailChimp subscribe form action support

  • Thursday, January 11, 2018
  • by ahipple
  • Repository
  • 2 Watchers
  • 6 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

MailChimp Plugin

The MailChimp Plugin is for Grav CMS. It creates a form action step permitting the signing up of members to a MailChimp email list., (*1)

NOTE: This plugin is unmaintained. Use at your own risk, forks welcome!, (*2)

Description

Adds MailChimp subscribe form action support., (*3)

Installation

Downloads are available on the Releases page. Once downloaded and extracted, copy the mailchimp directory to your Grav installation's user/plugins directory., (*4)

Install from GPM

Installation is available through the GPM. Install it from your site's admin panel or from the terminal:, (*5)

$ bin/gpm install mailchimp

Install with Composer

This plugin is available via Packagist.org., (*6)

# install without dev dependencies in a production-type environment.
composer require aaronhipple/grav-plugin-mailchimp --update-no-dev

# install with dev dependencies in a development- or CI-type environment.
composer require aaronhipple/grav-plugin-mailchimp

Usage

Configure the plugin with your MailChimp API key, either in user/config/plugins/mailchimp.yaml or using the admin plugin., (*7)

Set up the form like so in your form's frontmatter, (*8)

form:
    name: subscribe
    fields:
        -
            name: email
            label: Email
            placeholder: 'Enter your email address'
            type: email
            validate:
                required: true
        - 
            name: my_custom_field
            label: My Custom Field
            placeholder: 'A Custom Field'
            type: text
        -
            name: news_letter
            type: checkbox
            label: 'Yes I would like to receive updated news and information'
    buttons:
        -
            type: submit
            value: Submit
        -
            type: reset
            value: Reset
    process:
        - mailchimp:
            required_fields: [news_letter]
            lists: [1234567, abcdefg]
            field_mappings:
                mailchimpMergeField: my_custom_field

The Versions

11/01 2018

dev-master

9999999-dev https://www.aaronhipple.com

Add MailChimp subscribe form action support

  Sources   Download

MIT

The Requires

 

plugin mailchimp grav

28/06 2017

0.0.5

0.0.5.0 https://www.aaronhipple.com

Add MailChimp subscribe form action support

  Sources   Download

MIT

The Requires

 

plugin mailchimp grav

07/10 2016

v0.0.4

0.0.4.0 https://www.aaronhipple.com

Add MailChimp subscribe form action support

  Sources   Download

MIT

The Requires

 

plugin mailchimp grav

07/10 2016

v0.0.3

0.0.3.0

  Sources   Download

The Requires

 

06/10 2016

v0.0.2

0.0.2.0

  Sources   Download

The Requires

 

06/10 2016

v0.0.1

0.0.1.0

  Sources   Download

The Requires