Hello all,
I think I found a bug. Please re-categorize if this is a user error. =)
I have copied the default simplenews-newsletter-body.tpl.php from the simplenews themes folder to my custom theme folder. I have set up emogrifier to successfully work with this file. Here is the code in my simplenews-newsletter-body.tpl.php file in my custom theme. The only thing I did was add the stylesheet and a testing class to the title, which turns the h2 red.
<link type="text/css" rel="stylesheet" media="all" href="/<?php print path_to_theme(); ?>/simplenews/css/shared.css" />
<h2 class="testing"><?php print $title; ?></h2>
<?php print render($build); ?>When I receive my test email it works great...my h2 is red and inspecting the element shows the style attributes!
I rename my file to simplenews-newsletter-body--22.tpl.php to reflect my Term ID = 22, expecting that this file will only be used for newsletters with termID 22. I add a "HELLO!" to make sure this file is picked up. Here is my new code in my simplenews-newsletter-body--22.tpl.php file.
HELLO!
<link type="text/css" rel="stylesheet" media="all" href="/<?php print path_to_theme(); ?>/simplenews/css/shared.css" />
<h2 class="testing"><?php print $title; ?></h2>
<?php print render($build); ?>I see the "HELLO!" in my test email after clearing cache which tells me that the file was correctly picked up. However, my h2 is no longer red which tells me emogrifier is no longer applied. The only change I made was renaming my file and adding "HELLO!".
Drupal 7.15
Emogrifier 7.x-1.18
Simple News 7.x-1.0
Thanks for reading!
-Tim