I have been trying to implement this module on a Drupal 7 website. However, unlike with the Drupal 6 version, enews template files that are customized for specific node types (enews-{type}.tpl.php) are not recognized by the system. In addition, there appears to be no way to specify a CSS file to include in the templated newsletter (as there is under Drupal 6). Also, there seems to be some issues with how the module recognizes available blocks, probably something that has to do with the way D7 allows users to specify the admin theme.
Finally, the enews.tpl.php file doesn't appear to be updated to the new way in which page regions are rendered in D7.
I really like how this module works under D6 and I hope I can continue to use it as I move sites to D7.
Comments
Comment #1
anouI must agree that my template file enews-{type}.tpl.php is not taken is consideration by Drupal 7. Seems like a problem of nomenclature ?... (like for node.tpl.php it's node--{type}.tpl.php with 2 dash)
Had to use the generic name of the template.
Comment #2
anou3 years after... :-)
For tpl in theme to work you must change in enews.module ~line 332
$vars['template_files'][] = 'enews-' . $node->type;by
$vars['theme_hook_suggestions'][] = 'enews__' . $node->type;And the name of your tpl should be like : enews--MYNODETYPE.tpl.php
I have some more changes to this module. When I'm finished, I'll provide a patch.