Just trying to provide easy access to a lists mergefield options for the content editor that's configuring a mailchimp component. Pretty easy to do with the MCAPI, so I rolled a basic patch. It should probably be cleaned up a bit in terms of documentation to the end user, but it works. Basically what it does is displays a list of available mergevars to the component editor after they have chosen a list during component configuration. It updates the mergevars when the list is changed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adam_b’s picture

Sounds great in principle but I just get an empty list :(

jesse.d’s picture

Fair enough. I think there a bunch of potential problems. It depends on the version on the mailchimp library that you're using and possibly the version of jQuery that you're using.

I've attached a patch that works with otb Drupal, webform_mailchimp 7.x-1.0-rc2 and Mailchimp's 2.0.6 API library. Or, I should say, it was working for me, but I'd be interested to hear if it worked for you as well.

dalemoore’s picture

The #2 patch is empty. I'm using both those versions of Webform MailChimp and the MailChimp API. Were you able to get it working? I copied the code from patch #1 and too also get a blank list.