cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
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 23 Jun 2018 - 23:12.

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