This question about Using an extension: Answered

How can I customize MailerContrib / mailnotify to include the topic's DataForm in the emails?

1. Install FlexFormPlugin

2. Setup a custom skin. E.g. to set this up for one web, in the WebPreferences topic in that web, include the line (Without the # comment)
  • #Set SKIN=myskin, pattern

3. In the foswiki/templates directory, create a file called mailnotify.myskin.tmpl containing
%TMPL:INCLUDE{"mailnotify"}%
%TMPL:DEF{HTML:middle}%<tr>
  <td width="50%">
    <a href="%SCRIPTURL{"view"}%/%WEB%/%TOPIC%"><b>%TOPIC%</b></a>
  </td><td width="30%">
    <a href="%SCRIPTURL{"rdiff"}%/%WEB%/%TOPIC%?rev2=%BASE_REV%&rev1=%CUR_REV%" rel='nofollow'>%TIME%</a> - %REVISION%
  </td><td width="20%">
    %AUTHOR%
  </td>
</tr>
<tr>
  <td colspan="2">
    %RENDERFORDISPLAY{topic="%TOPIC%"}%
  </td><td width="20%">
    &nbsp;
  </td>
</tr>
<tr>
  <td colspan="2">
    <font size="-1">
    %TEXTHEAD% </font>
  </td><td width="20%">
    &nbsp;
  </td>
</tr>
%TMPL:END%

-- KipLubliner - 16 Aug 2012

 

QuestionForm edit

Subject Using an extension
Extension MailerContrib
Version
Status Answered
Related Topics
Topic revision: r2 - 16 Aug 2012, GeorgeClark - This page was cached on 18 Oct 2018 - 05:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy