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.
Template selection can be improved upon. The way mailchimp module does it (select list populated with valid templates) is much more user-friendly.
Gonna make a patch for this.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1909636-selectlist-for-template.patch | 1.24 KB | firfin |
Comments
Comment #1
firfin CreditAttribution: firfin commentedPatch attached.
Comment #2
mubiesam CreditAttribution: mubiesam commentedis it correct to apply the patch under sites/all/modules/mcc/mcc.module ?
I got nothing changed, still the textfield instead of select list...
Thanks,
Comment #3
firfin CreditAttribution: firfin commented@mubiesam: That is probably because of the defaults and caching MCC uses. I got that too sometimes.
Just save all your defaults/configuration for MCC again (sitewide, nodetype) then create a new node and then create a new campaign from that.
The patch should be run from the module directory as usual (i.e. .../modules/mcc/ in this case.)
Comment #4
mubiesam CreditAttribution: mubiesam commentedThanks for the reply...
I had decided not to use too many templates, but just stick to one.
But after changing the template id from 1000188 to 73737 in both drupal SITEWIDE DEFAULT MAILCHIMP CAMPAIGN SETTINGS and sites/all/modules/mcc/mcc.settings.inc , it still appeared the 1000188 in template id field while CREATE NEW MAILCHIMP CAMPAIGN...
Do you have idea why is this happening...
Thanks,
Sam
Comment #5
firfin CreditAttribution: firfin commentedFirst of all, I think you should probably open another issue for this different issue/question.
It is not exactly clear to me what you are doing, but it doesn't seem related to this patch / issue?
But as a quick answer, I would check the database to see if the value has changed there (for site and CT defaults) and work from there. Resave settings through the UI, create new content and campaigns, see what happens to DB.
Comment #6
Sutharsan CreditAttribution: Sutharsan commentedI reviewed the patch:
This code uses a function from mailchimp_campaign module. This implies a dependency on mailchimp_campaign. However mailchimp_campaign and mcc both define the path "admin/config/services/mailchimp/campaigns". Even when changing the path, this will cause confusion in the interface. A quick and dirty solution is to copy the function mailchimp_campaign_get_templates() into mcc.
Comment #7
firfin CreditAttribution: firfin commentedThank you for your review @Sutharsan. I will get back on this next week.
Comment #8
firfin CreditAttribution: firfin commentedStill getting used to new issue queue ;-)
Comment #9
firfin CreditAttribution: firfin commentedNo sense floggin a dead horse..