changing the content of what is in the digest
mdowsett - February 3, 2009 - 20:24
| Project: | Simplenews Digest |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
From the description, it looks like it will only send out the title of each node....can the teaser be sent out as well? entire node? I also use the attached image for the node type I have set to send out in the newsletter and would like that to be included too.

#1
Not currently, no. Feel free to submit a patch.
#2
I would if I could....but I'm no coder! :)
I'd probably be able to find where in the code its set to say "send the title" but I'd have no idea what to change it to send the teaser. I'm sure I'd mess it up.
I'm more than willing and able to test it tho! :)
#3
We'll probably make this an improvement at some point but I can't promise on when I can deliver. Could be a couple of months at least.
#4
sure thing. understandable. I left it as a feature request....maybe someone else out there can help.
Even if it doesn't get into a proper UI, at least a bit of code to change out would be amazing. I did see in the .module where the content is set....all of 3 or 4 lines heh?! Amazing.
#5
I recently got startet with Simplenews and Simplenews Digest (SD) on D6, and I was facing the same challenge. By looking at the code I noticed, that SD uses a theme function to actually generate the content of the newsletter. It passes the nodes with their id, title and url to the function and then renders the content.
So what I do is I override the theme function with a template called "simplenews_digest_format_newsletter.tpl.php", where I copied the code from the function "theme_simplenews_digest_format_newsletter()". If you do that, don't forget to print $output or you won't see anything. When SD now loops through the nodes in my template, I simply load the node by its id and then have all the fields I need.
What I do not understand yet: the override of the theme function with a template file only works, when calling SD via cron.php. When I - for testing purposes - call it via _simplenews_digest_cron_routine() from a module, SD always defaults to the theme function of the module.
I still have to investigate though if I need the template file also in my main theme directory, because I am actually using a subtheme of Zen.