Anyone interested in Twig templates for Mailchimp and/or Mandrill?

I use Twig to customise templates on site before sending them off to Mailchimp. Twig is what we will all use in D8 and it is compatible with D7 plus it is compatible with Mailchimp templating.

You can do anything with twig before sending the template to Mailchimp to start a new campaign or to update an existing campaign. I skipped twig the first time I connected a site to Mailchimp because there was nothing dynamic in the email other than the list fields and a few almost static site specific items. The next email needed some things that varied from month to month. The easiest approach is listed next. If anyone else wants something similar, I am happy to work on it.

  • Create a Twig template in a Cel (Cel module).
  • Create a view to list content.
  • Create a Webform to provide the request input.
  • Create a tiny module to take the request from the Webform, feed it into the view, then feed the result into the template using the Cel Twig module.
  • Send the result up to the campaign using the details supplied in the Webform.

The combination means everything can be delegated to the person who manages the mailout without a developer involved beyond the initial module installation/dev.


amyvs’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

“And now our watch [for support of the 7.x-2.x version of the MailChimp module] has ended…” With the approaching deprecation of MailChimp’s API version 2.0, I’m sad to say we too must turn the page. This branch will become unsupported in early October and officially deprecated by the end of this year (2016).

Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. If you find this issue still exists on either the 7.x-4.x or 8.x branches, let us know by opening a new ticket. “What is dead may never die, but rises again, harder and stronger!”