Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | webform-mailchimp-mergevars-2.patch | 0 bytes | jesse.d |
webform_mailchimp_mergevars.patch | 4.32 KB | jesse.d |
Comments
Comment #1
adam_b CreditAttribution: adam_b commentedSounds great in principle but I just get an empty list :(
Comment #2
jesse.d CreditAttribution: jesse.d commentedFair 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.
Comment #3
dalemoore CreditAttribution: dalemoore commentedThe #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.