I added some cck fields to my Newsletter content type, then created a node-simplenews.tpl.php file to theme them.

The tpl works fine when viewing the newsletter in the site. But the email being sent uses the default layout (just a list of fields preceded by its lables).

Is there some way I can make the module use node-simplenews.tpl.php as a template for the email message being sent, or any other template file that I can create to theme these messages?

Thanks

Comments

dtabach’s picture

Workaround: use Contemplate. Simplenews does use the templates defined in 'body output' by Content Template module.

sutharsan’s picture

Title: node-simplenews.tpl.php? » CCK compatibility
Category: support » feature

CCK compatebility will be included in the Simplenews 6 version.

hansrossel’s picture

Thanks to dtabach for the hint to use contemplate instead of normal cck theming!

I could make a perfect user friendly newsletter template with a complex design and nodereference fields for including nodes using contemplate. See my tutorial in the handbook for more info how to theme complex table newsletter layouts with simplenews: http://drupal.org/node/268404

sutharsan’s picture

Status: Active » Fixed

@hansrossel: nice work and thanks for documenting it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.