comment-digest template
The email is sent once a day (or once a week) to members of a group who have their notification option set to “daily digest” or “weekly digest”, whenever there was activity in this group.
Email headers
This message sets the following headers by default:
Name | Value |
---|---|
Auto-Submitted | auto-generated |
From | Group, see From address |
Subject | [ group name] Daily digest |
XML
PageSeeder produces the following XML for the XSLT template:
<notification template="comment-digest" frequency="daily" subject="[acme-test] Daily notification" emaildomain="example.org" hosturl="https://example.org" unsubscribetoken="sample-token"> <!-- list of comments sent in 24-hour period--> <comments> <comment id="123" contentrole="Comment" created="2012-03-08T12:34:00+10:00"> <title>Cavern stolen!</title> <author id="12" firstname="John" surname="Jones" email="jjones@email.com" username="jjones"> <fullname>John Jones</fullname> </author> <content type="text/plain">Sesame opened the door</content> <context> <group id="3" name="acme-test"></group> </context> </comment> <comment id="124" contentrole="Comment" created="2012-03-08T12:34:00+10:00"> <title>Cavern stolen!</title> <author id="12" firstname="John" surname="Jones" email="jjones@email.com" username="jjones"> <fullname>John Jones</fullname> </author> <content type="text/plain">Sesame opened the door</content> <context fragment="default"> <uri id="456" scheme="http" host="www.my-host.com" port="80" path="/ps/acme/test/folder/file.psml" decodedpath="/ps/acme/test/folder/file.psml" external="false" mediatype="application/vnd.pageseeder.psml+xml" created="2012-01-18T17:22:00+10:00"> <displaytitle>My document</displaytitle> <description>This document is for testing purposes</description> <labels>test,example</labels> </uri> </context> <attachment> <uri id="456" scheme="http" host="www.my-host.com" port="80" path="/ps/project/group/folder/file.psml" decodedpath="/ps/project/group/folder/file.psml" external="false" mediatype="application/vnd.pageseeder.psml+xml" created="2012-01-18T17:22:00+10:00"> <displaytitle>My document</displaytitle> <description>This document is for testing purposes</description> <labels>test,example</labels> </uri> </attachment> <attachment> <uri id="457" scheme="http" host="www.my-host.com" port="80" path="/ps/project/group/folder/subfolder/image.png" decodedpath="/ps/project/group/folder/subfolder/image.png" external="false" mediatype="image/png" created="2012-01-18T17:35:00+10:00"> <displaytitle>An image</displaytitle> </uri> </attachment> </comment> <comment id="125" contentrole="Comment" created="2012-03-08T12:34:00+10:00" status="Open" priority="High" duedate="2012-05-10T00:00:00+10:00"> <title>Cavern stolen!</title> <author id="12" firstname="John" surname="Jones" email="jjones@email.com" username="jjones"> <fullname>John Jones</fullname> </author> <assignedto id="15" firstname="Jack" surname="Johnson" email="jjohnson@email.com" username="jjohnson"> <fullname>Jack Johnson</fullname> </assignedto> <content type="text/plain">Sesame opened the door</content> <context> <group id="3" name="acme-test"></group> </context> </comment> </comments> <group id="3" name="acme-test" description="The ACME testing group" /> </notification>
Usual content
Following is a screenshot of the HTML email: