2017 © Pedro Peláez
 

silverstripe-module mailchimp

SilverStripe 3 MailChimp Integration

image

iqnection-pages/mailchimp

SilverStripe 3 MailChimp Integration

  • Monday, April 17, 2017
  • by iqmeckert
  • Repository
  • 4 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Mailchimp Module for SilverStripe 4

Provides functionality to add contacts to Mailchimp Directly integrates with IQnection's Base Pages module, (*1)

Setup:

Log in to MailChimp as the client: https://login.mailchimp.com, (*2)

Create a Mailchimp API key. At the time this was written, this was located under Account > Extras > API Keys., (*3)

If using the IQnection BasePages module, a field will automatically be added to the form controls tab in the CMS to select which list submissions should be added to., (*4)

To add contacts using your own controller:

Create an extension for your page, and add the following function to the Controller Extension:, (*5)

class FormSubmission extends DataObject { public function onBeforeWrite() { parent::onBeforeWrite(); if (!$this->ID) { $mc = new Mailchimp(SiteConfig::current_site_config()->MailchimpApiKey); $result = $mc->addContact($this->Email, 'my_mailchimp_list_id', $this->FirstName, $this->LastName); } return $this; } }, (*6)

The Versions

17/04 2017

dev-master

9999999-dev

SilverStripe 3 MailChimp Integration

  Sources   Download

The Requires

 

pages iqnection

17/04 2017

0.0.2

0.0.2.0

SilverStripe 3 MailChimp Integration

  Sources   Download

The Requires

 

pages iqnection

05/11 2015

0.0.1

0.0.1.0

SilverStripe 3 MailChimp Integration

  Sources   Download

The Requires

 

pages iqnection