2 August 2010 at 5:33pm
I am running newsletter v0.4.0-rc1 on 2.4 and having some trouble with the template. I created the template Newsletter.ss in the folder email. But no matter where I put the folder (themes/xxx/templates/, newsletter/templates/, or even mysite/) I don't get anything in the selectbox in the admin. I tried to set the paths in the configs both with $template_paths and $template_path.
There is a function in the NewsletterAdmin.php which even should get the templates without setting the path in the config. Why then do I only have "None" in the template selectbox?
Has anyone managed to run the newsletter module on 2.4 with a custom template?
3 August 2010 at 8:42pm
This is probably a version issue. I'm running on the latest version of ss (2.4.1) and newsletter module and I'm getting the same issue. Dumping out some of the variables I noticed that the theme is not set when AJAX requests are sent and there's a bug report for it [url=http://open.silverstripe.org/ticket/5872]here[/url].
Mad_Clog can you tell us which version you're running on?
3 August 2010 at 8:48pm
A workaround for the Newsletter module is to move your newsletter templates to your project folder instead. It checks for templates in project-folder/templates/email and project-folder/templates/Email as well after checking the theme folder (which isn't working right now).