Closed nattywebdev closed 6 months ago
I've repeated adding the templates as posted above, but clearing cache and now it seems the custom body template is being recognised. Either there was no problem or I've found the answer! Please ignore (but left here as a note to myself...).
I've had success in using a template file that will show a different footer for different newsletter categories, using the term id and using html format.
For example, my term 'Member' (tid: 150) has a footer template:
simplenews-newsletter-footer--150--email-html.tpl.php
and this produces a different footer for emails sent to that category (list) than my 'Test' category (tid: 149):
simplenews-newsletter-footer--149--email-html.tpl.php
However, I can't get this to work for a different body template, for example:
simplenews-newsletter-body--149--email-html.tpl.php
seems to be ignored and the default
simplenews-newsletter-body--email-html.tpl.php
is used instead.
Am I doing something wrong, or does this also not work for others?