ant-tar / modMailchimp

modMailchimp lets you easily place a subscribe form anywhere on your website for any list you want.
7 stars 4 forks source link

List id optional #12

Closed BigBlockStudios closed 12 years ago

BigBlockStudios commented 12 years ago

ListId appears to be a required hidden field, it also appears to HAVE to match the hidden form name field & actual form name. If listid is omitted from the mailchimp call the form is not displayed on refresh.

[!modMailchimp?

 &apiKey=`150cd0eb2ff74cabd2d43d66031b6d87-us4`
 &successId=`2`
 &failureId=`3`
 &subscribeTpl=`mmc_subscribeMMERGETpl`

]

darkhouse commented 12 years ago

listId is now optional, which if you're using the default template it adds the modMailchimpLists snippet to the {{{ [[+fields]] }}} placeholder. If you're using a custom form, you must either hard code your listId field, or use the modMailchimpLists snippet. If you do specify a listId, it no longer adds a hidden input - that was done originally to handle the multiple form stuff, but wasn't a proper solution because it required listId to be... required. Unsubscribe forms require listId, but if necessary, I could add the modMailchimpLists snippet to the {{{ [[+fields]] }}} placeholder.