Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Newsletter module on 2.4


Go to End


3 Posts   1860 Views

Avatar
dendeffe

Community Member, 135 Posts

8 July 2010 at 12:54am

Edited: 08/07/2010 12:55am

Hi,

I just tried the newsletter module on 2.4 and have a few questions.

* When previewing a newsletter, I get an error about the template. Any ideas?
[User Warning] None of these templates can be found in theme '': test.ss

* When adding a subscription page, I get this error: ERROR [Warning]: Missing argument 2 for CheckboxSetWithExtraField::setValue(), called in /Users/stijndelathouwer/Dropbox/projects/newsletter/sapphire/forms/FormField.php on line 78 and defined
IN POST /admin/getitem?ID=5&ajax=1
Line 237 in /Users/stijndelathouwer/Dropbox/projects/newsletter/newsletter/code/CheckboxSetWithExtraField.php

* Any tips on automatically adding the latest blog posts to a template? It would also be handy if the client could decide to include it or not.

* How about capacity?

Avatar
MarcusDalgren

Community Member, 288 Posts

9 July 2010 at 11:10am

Edited: 09/07/2010 11:12am

Just tried it out and I'm getting the same error. Open up CheckboxSetWithExtraField.php and scroll down to line 237. Change the function definition for setValue to function setValue($val, $data = null){ and you won't be getting the error any more. I am not getting any errors when previewing.

When it comes to adding stuff to the newsletter like the latest blog posts and stuff like that it gets rather messy. It's doable (I've done it for some of my clients) but you'll have to hack NewsletterAdmin.php and BatchProcess.php to get everything to work.

Sadly the only development that seems to happen with the newsletter module is compability upgrades when new releases of SilverStripe arrive and apparently everything is not working properly.

I've no idea about capacity but if you're going to send alot of newsletters then going with an external provider like Mailchimp will probably suit you alot better.

Avatar
dendeffe

Community Member, 135 Posts

9 July 2010 at 5:44pm

Yes, I’m actually trying to convince my client to go with MailChimp (it also has an option to send RSS (news) every week).