Hello,
I put a file called node--simplenews.tpl.php in my theme.
The simplenews node displays fine on the website, with my changes.
But when I send the node (test or complete mailing), I get the default node template, without my changes.
Is it working as expected? Docs says I can use simplenews-newsletter-body.tpl.php but this file has not the fine control that node template has.
Thanks in advance
Comments
Comment #1
berdirYes, this is working as designed.
No idea what you mean, you have exactly the same fine control in the newsletter body template as you have in the node template. You have $build to work with, which contains all fields of the node and you also have $build['#node'] which is the node object. Refer to docblock in that file for more information.