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.
Versions 7.x-2.6 and 7.x-2.6+2-dev
When I try to override the Mailchimp Block title for a list in the blocks admin UI, the value entered in the Title field is saved but NOT displayed. I've tried with ''. I've tried flushing all caches & restarting the server. No change. Broken.
Edit - Tried every version from 7.x-2.6+2-dev down to 7.x-2.0-Rc2. Same problem. In the end, I installed 2.5 - I prefer the 'Subscribe' label to the more generic 'Save'.
Comments
Comment #1
bleedev CreditAttribution: bleedev commentedSteps taken (using Mailchimp 7.x-2.x-dev):
Block title entered is shown as the title on the MailChimp block.
Comment #2
bisonbleu CreditAttribution: bisonbleu commentedHum... Looking back at this, I think that I might have been thinking about the subtitle of this block.
I'm definitely able to change the block's name as suggested in #1. But what I really wanted was to be able to change the 'Sign up for [title_of_list]' that appears just underneath.
AFAIK, the only way to do this is by 'hacking' the mailchimp_lists.module or writing a custom module that overrides this string.
Comment #3
bensey CreditAttribution: bensey commentedI agree,
I think the 'Sign up for [title_of_list]' text should not be hard-coded in the block description.
It kind of defeats the purpose of allowing people to customise the block message at all, when you have no control over that first line.
Maybe a better solution would be to display that hard-coded message if the description was left empty?
Comment #4
codesmithJust upgraded and this is still an issue. Is there really no way to remove that text in the UI?
I did it with an override in template.php
In my case NEWSLETTER-LABEL is 'newsletter_sign_up'
Comment #5
bensey CreditAttribution: bensey commentedI've been doing the same thing, but with a
hook_form_FORM_ID_alter
implemented in a custom module.Just thought I'd share another solution that's not theme specific.
It would be good to not have to do this for every site and Mail Chimp list however.
Comment #6
mibfire CreditAttribution: mibfire commentedComment #7
roborracle CreditAttribution: roborracle commentedPerfect solution in #5 - but for the sake of clarity using the list's machine name instead of label is what did the trick for me.
Comment #8
sophiekovalevsky CreditAttribution: sophiekovalevsky commentedI don't know yet how access to the fields of the module.
It was a problem try to find out the id of the form that I need to change.
For those who need it, download the get form id module http://drupal.org/project/get_form_id
function CUSTOM-MODULE_form_mailchimp-form-id_alter(&$form, &$form_state){
$form['mailchimp_lists']['mailchimp_id-of-the-list']['title']['#markup'] = '';
}
Comment #9
dagomar CreditAttribution: dagomar commentedDrop in fix at #6, works for me.
/* edit
Not a fix, but a workaround.
/edit
Comment #10
gcbFixed in latest Dev release, rolling a new stable release soon.
Comment #10.0
gcbadded infos.