@evgeniy-onegin it's not simple. If you don't know where to start, and especially if you aren't a programmer, you're going to have a hard time.
Include additional data in digest emails
-
Hi,
I'm looking to expand the contents of the digest emails to include details of topics that have also been closed and possibly updated during the time period. Has anyone done this before?
I plan to write a plugin that will do the necessary but I'm not sure there are any existing hooks that will allow me to do this.
Can anyone advise here?
Cheers.
Alan. -
A combination of overriding the template and
filter:email.params
should work for you. -
@alanbrown you can refer to this topic - "Email Template To Include New Contents - How?" that will give you what you may need
-
@pitaj I've looked at using this hook and i can successfully replace the data here by querying the db and getting new data and overriding the template like you say. The only issue I have is there is no way to tell at this point which digest is being created so i don't know whether to query for daily, weekly or monthly data.
Is it possible to find out the digest term at this point? Or is there another hook earlier in the process where this is available and I can do my replacements?
-
@alanbrown it has to be one of the existing params. Looks like it's the
interval
field.