Skip to main content

 Configuration

Configuration manual for PageSeeder

accept-comment template

When a new comment is sent to a moderated group, before the comment is relayed to the group members, it is sent to the Moderator for approval.

Email headers

NameValue
Auto-Submittedauto-generated
FromAuthor the comment, see From address
Senderpageseeder@emaildomain
Subject[group name]* [comment title]
ToEmail address of moderator

XML

PageSeeder produces the following XML for the XSLT template:

<notification template="accept-comment"
              emaildomain="example.org"
              hosturl="https://example.org">

  <!-- The comment to moderate -->
  <comment id="123"
           contentrole="Comment"
           created="2012-03-08T12:34:00+10:00">
    <title>Cavern stolen!</title>
    <!-- Author (Not always a PageSeeder member) -->
    <author id="12"
            firstname="John"
            surname="Jones"
            email="jjones@example.org"
            username="jjones">
      <fullname>John Jones</fullname>
    </author>
    <assignedto id="77"
                firstname="Bill"
                surname="Abong"
                username="billabong"
                attachments="true"
                email="billabong@example.org"
                status="activated"
                date="2015-11-23T14:32:15+11:00">
      <fullname>Bill Abong</fullname>
    </assignedto>
    <content type="text/plain">Sesame opened the door</content>
    <!-- Attachments (if any) -->
    <attachment>
      <uri id="456"
           scheme="http"
           host="example.org"
           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>
    <context>
      <uri id="458"
           scheme="http"
           host="www.example.com"
           port="80"
           path="/ps/project/group/folder/context.psml"
           decodedpath="/ps/project/group/folder/context.psml"
           external="false"
           mediatype="application/vnd.pageseeder.psml+xml"
           created="2012-01-18T17:22:00+10:00">
        <displaytitle>My context document</displaytitle>
      </uri>
    </context>
  </comment>
  <group id="3"
         name="acme-test"
         description="Group used for illustrative
                      examples in documents"/>
</notification>

Usual content

Following is a screenshot of the HTML email:

accept-comment_v60000.png

Created on , last edited on