[Zope-PTK] Notification of the reply to a portal content

matsuda-toshio@fujielectric.co.jp matsuda-toshio@fujielectric.co.jp
Tue, 27 Jun 2000 09:28:32 +0900 (JST)


Hi,

Just for your information. There is an easy way to notifiy the owner
that his/her porttal content has been replied by someone.

(1) Change the replyForm.dtml under the directory 'PTKBase/dtml'
    Change the line
    <input type="submit" value="Reply" name="createReply:method">
    to
    <input type="submit" value="Reply" name="createReplyNotify:method">

(2) Create the corresponding DTML method in the portal instance root.
    e.g.
------------------- createReplyNotify --------------------------------
<dtml-var standard_html_header>
<dtml-sendmail mailhost="MailHost">
To: <dtml-var "getPortal().acl_users.getUser(this().Creator()).email">
From: &dtml-email_from_name; <&dtml-email_from_address;>
Subject: Correspondence on your portal content
Content-Transfer-Encoding: 7bit
Content-Type: Text/Plain; charset=us-ascii

Hi, Portal user

Your content has been replied by 
<dtml-var "AUTHENTICATED_USER.getUserName()"> at
<dtml-var "ZopeTime()" fmt="aCommon">.
Please check the thread of your content at

<dtml-var "absolute_url()">

</dtml-sendmail>

<dtml-call "this().createReply(title, text, REQUEST, RESPONSE)">

<dtml-var standard_html_footer>
---------------------------------------------------------------------

Any comments are welcomed.

-- 
T. Matsuda