{Extensions}{NotificationPlugin}{EnableImmediateNotify} |
Enabled |
{Extensions}{NotificationPlugin}{EnableNormalNotify} |
Disabled |
NTF
macro, it will be automatically created.
%NTF{}%
macro:
Name | Description | Default |
---|---|---|
popup | Renders a "Notifications" button, which invokes a popup menu for setting notificaions. | off |
The following settings all default to off if popup is enabled | ||
tin | Renders a TIN button to toggle the Immediate Notify status of the topic. | on |
win | Renders a WIN button to toggle the Immediate Notify status for the entire web. | on |
tn | Renders a TN button to toggle the Normal Notify status of the topic. | Disabled |
wn | Renders a WN button to toggle the Normal Notify status for the entire web. | Disabled |
%NTF{}%
- displays all four buttons %NTF{win="off" wn="off"}%
- displays only buttons for topic immediate notification and regular topic notification %NTF{popup="on"}%
- Displays a link or button to open the Update Notifications dialog. %NTF{popup="on"}%
macro is pressed.
%STARTSECTION{"notification"}% <div id='changenotify' title="%MAKETEXT{"Change Notification"}%" class="jqUIDialog { modal:true, resizable:false, draggable:false, width:400, autoCenter:true, cache:false}"> <form method="post" action="%SCRIPTURLPATH{"rest"}%/NotificationPlugin/changenotify"> <input type="hidden" name="popup" value="1" /> <input type="hidden" name="topic" value="%URLPARAM{"notifyweb"}%.%URLPARAM{"notifytopic"}%" /> ---++ <nop>%URLPARAM{"notifyweb"}%.%URLPARAM{"notifytopic"}% %IF{"context NotificationPluginImmediate" then=" ---+++ Immediate Notifications <input type='checkbox' name='TIN' value='ON' %URLPARAM{"TIN"}% >changes to the Topic<br/> <input type='checkbox' name='WIN' value='ON' %URLPARAM{"WIN"}% >changes to the Web<br/> "}% %IF{"context NotificationPluginNormal" then=" ---+++ Normal Notifications <input type='checkbox' name='TN' value='ON' %URLPARAM{"TN"}% >changes to the Topic<br/> <input type='checkbox' name='WN' value='ON' %URLPARAM{"WN"}% >changes to the web<br/> "}% <input type='hidden' value='Update' name='action'></form> <a class="jqUIDialogButton jqUIDialogSubmit jqUIDialogClose {icon:'ui-icon-circle-check'}" >%MAKETEXT{"Change"}%</a> <a id='cancelLink' class="jqUIDialogButton jqUIDialogClose {icon:'ui-icon-cancel'}">%MAKETEXT{"Cancel"}%</a> </div> %ENDSECTION{"notification"}%
NotificationPlugin/mailnotify
. As the command writes to the logs, be sure
to run it with the web server userid, to prevent file ownership changes.
Option | Description |
---|---|
-q=1 |
Quiet mode. No output is printed. Basic information logged to the Foswiki debug log. |
-n=1 |
Dry-run. No email will be sent. The run timestamps are not changed. |
15 */8 * * * cd /path/to/website/bin/bin && perl ./rest /NotificationPlugin/mailnotify -q=1
configure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Some unusual files are installed that are worthy of mention:
templates/htmlchanges.tmpl |
Template for generating HTML mails with notifications |
templates/view.notify.tmpl |
Template overrides the SubscribePlugin's "subscribe" link with a link to "Update Notifications" dialog. |
changes-*.tmpl
and
mailnotify-*.tmpl
Author: | Foswiki:Main.RichardBaar Foswiki:Main.ProjectContributors |
Version: | 2.00 |
Release: | 27 Apr 2017 |
Change History: | |
27 Apr 2017 (2.00) | Foswikitask:Item11572: Syntax errors in the code. Foswikitask:Item14327: Errors generated when saving a new userNotifyList. Foswikitask:Item14325: Unescaped braces fail in latest perl. Foswikitask:Item14326: Non-existing global variables are referenced. Foswikitask:Item11574: Notification buttons and popup are not working. Foswikitask:Item14378: mailnotify-NP script is not functional. |
12 Sep 2010 (1.20) | Foswikitask:Item8428: Lose SENDER |
21 May 2007 (1.15) | TWikibug:Item3969: 8bit email fix (Foswiki:Main.WillNorris) |
11 May 2004 (1.14) | Version 1.14 - popup support for changing notifications |
29 Apr 2004 (1.13) | Version 1.13 - mailnotify script bugfix |
28 Apr 2004 (1.12) | Version 1.12 - bugfix |
28 Apr 2004 (1.11) | Version 1.11 - bugfixes |
25 Feb 2004 (1.05) | Version 1.05 - bugfix |
24 Feb 2004 (1.04) | Version 1.04 - bug-fix of immediate notifications |
24 Feb 2004 (1.03) | Version 1.03 - added SENDER variable, bug-fixes |
26 Apr 2004 (1.01) | Version 1.1 - new functions; added support for fast setting notifications |
14 Jan 2004 | Initial version |
Author | Foswiki:Main.RichardBaar Foswiki:Main.ProjectContributors |
Version | 2.00 |
Release | 27 Apr 2017 |
Description | Send fine grained notifications of changes to topics you are interested in. |
Repository | https://github.com/foswiki/NotificationPlugin |
Copyright | © 2004, Foswiki:Main.RichardBaar © 2004-2010 Foswiki:System.ProjectContributor |
License | GPL (GNU General Public License) |
Home | http://foswiki.org/Extensions/NotificationPlugin |
Support | http://foswiki.org/Support/NotificationPlugin |