I already tried contact the guys from 'mighty big robot', but their support doesn't seem to be that fast and I really need to have this fixed. So I might as well try my luck over here.
So, I installed 'champagne' - http://devot-ee.com/add-ons/champagne and it works great.
It allows you to send newsletters through campaign-monitor directly from expressionengine. It also allows you to use EE's templating system to generate a template that can be use for your newsletter.
You can do this by selecting a EE-template that will be used for your newsletter in the channel you'll be using to create your newsletters. Like so:
Note: 'newsletter' is my channel, 'newsletter/index' is my template.
BUT, not every channel needs a newsletter. So when leaving these fields blank, like this:
You would expect that the 'champagne' module doesn't load when accessing the publish layout for this particular channel.
Unfortunately, it does: it ads a tab and a custom field, but they're riddled with errors and are messing up the whole publish layout. Like this:
I tried fixing it myself, but I just can't figure out where the module starts adding the tab and custom field.
In ft.champagne.php at line 85 it checks wether a template has been assigned to the channel and throws an error when this isn't the case.
if ( ! isset($channel_settings['html_content_url']) OR ($channel_settings['html_content_url'] == '' OR $channel_settings['text_content_url'] == ''))
{
return $this->EE->lang->line('msg_no_channel_settings');
}
else
{
...
The statement is correct: the code goes into the 'if' segment ( and stays out of the 'else' ) but it doesn't print the error, and it doesn't prevent the module from loading the tab & fields when it shouldn't.
Any ideas ?
EDIT:
nico suggested to reset the publish layout, which works. But I would rather solve this without having to reset and rebuild the publish layout of a few dozen channels.