I get this error when trying to populate an email template with data from within onBeforeWrite for my Order page. I want an email triggered in some circumstances when a record is saved. I have code elsewhere in the system that is loading the templates just fine, but those cases are all done from within controllers rather than a dataobject. Is there any reason I can't populate an email template from onBeforeWrite for a dataobject?
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.
No, no reason. Both DataObjects and Controllers are ViewableData.
Did you flush?
Have you misspelt the names?
Did you accidentally edit in the wrong folder?
Further to the above, make sure you’ve set the theme in your config:
SSViewer:
theme: 'mythemename'