THANKS to Paul!
This extension is based on the “Newsletter Extension” Paul quietly released in this thread.
IMPORTANT!
This extension does not play nice with Pauls extension, make sure you disable that one first.
sorry Paul
The extension allows you to create multiple newsletters, based on regular templates.
You can also specify a default subject if you like.
I created it with multi language websites in mind, but it can be used however you see fit.
Please, please read the README for instructions first!
After reading the readme and setting up your newsletters you can access them by clicking the appropriate Tab.
Your Communicate page will still works as usual! (unlike Pauls extension).
Installation should be pretty easy but the Tabs part is a but unusual, feel free to spam me with questions if you have any.
EDIT1: updated to 1.1
EDIT2: Updated the extension to play nice with other extensions using the same hook.
Version 1.1 adds a “Custom Javascript” field which you can use to add some extra javascript to the page, you can use this to select checkboxes, set the value of drop-down menus etc. so your client does not have to worry about that part.
Hi, trying desperately to get this to work so I can give it a whirl. I changed the variable names in both the extension and language files, enabled the extension (Paul Burdick’s has been disabled - it’s didn’t do what I needed anyway) and added the tab as you suggested. Once I clicked on the tab I got this error message:
Notice: Uninitialized string offset: 0 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 170
Notice: Undefined index: 1 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 172
Notice: Uninitialized string offset: 0 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 175 MySQL ERROR:
Error Number: 1064
Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Query: SELECT group_name FROM exp_template_groups WHERE group_id =
Any thoughts?
---EDIT---
I hadn’t hit submit on the email template setup page. That’s what threw the error. This is pulling content exactly as I had hoped. So far, so good.
I installed this on some test sites and had no problems—it’s a really neat solution that you came up with. But I tried it on a live site and the “create newsletter tab” link did not show up in the newsletter extension settings. Any thoughts why that happened and any steps to workaround that?
There is a simple workaround for creating tabs.
Point your browser to this page and change the last part of the URL to match the name of your newsletter.
Just a thought but I’ve got the multi-text extension and was wondering if that lanaguage file being so closely named to multiple_newsletters might have contributed to the problem. I may investigate this at a later time.
Hi Cocoaholic,
just a couple of q’s about your ext..
We currently have an english newsletter on our site, but we would slowly like to roll out also an italian, french and spanish version.
Ideally visitors would be able to choose which version they can subscribe to and receive the email confirmation in their native language. Is this what your extension achieves?
Not exactly, but you can use it for the purpose.
All the extension does is allow you to use regular templates as a basis for (more than one) newsletters.
Visitors that visit your site cannot subscribe to a newsletter directly, they subscribe to a mailinglist, and you decide what to send to that particular list. see docs.
You could have a mailinglist for each language, and setup the extension to check (select) the correct mailinglist by default in the communicate page.
There are some examples on how to do this in the README.txt
I might look into updating the extension and add some more settings instead of having to do this manually using javascript.
Hi,
yes that is exactly what i have done (set up individual mailing lists), however there seems to be only one Mailing List Activation Email template. I suppose I could include text in all languages in this template but that is a bit messy. I was wondering if I could use an if structure in this template to sniff out what mailing list is active and display only the relevent text.
Ok, my bad. I was expecting to see a new ‘sub tab’ on the communicate page which would allow me to select my template. I understand how this works now, though I think a better implementation would be to introduce a drop down select on the right hand side of the communicate page which allows you to select from:
Template:
- None
- Monthly News
... etc
The select could trigger a page redirect ‘onchange’ and warn the user that they will loose any content that they have input. This would be far more intuitive I think, plus if you have lots of templates, you don’t want to have to add loads of tabs to get to them.
That being said, this could well turn into one of the most fantastic extensions to the control panel that I have seen since the ‘Pages’ module. Keep up the good work!
Some of the people are seeing blank emails from the newsletters. The two people I know of so far use SBC Yahoo for the email. Has there been any problems reported by others? Or is there an update to the newsletter extension?