Subscribe Plugin
Companion plugin to the
MailerContrib, adding a "Subscribe me" link to topics to easily subscribe to topic changes
Example (only works if plugin is installed, and you are logged in (not
TWikiGuest)):
Usage
- Syntax:
%SUBSCRIBE{...}%
or simply %SUBSCRIBE%
- Parameters:
Parameter | Default | Meaning |
who | Logged-in user | Who to subscribe (wikiname, no web) |
topic | Current topic | Topic to subscribe to. Wildcards may be used e.g. topic="Item*" will subscribe to all topics starting with Item . Use topic="Main.*" to subscribe to the WebNotify for that web. |
unsubscribe | Not set | If set to "on", will unsubscribe the user |
format | Simple HTML Link with an action anchor "Subscribe" or "Unsubscribe" | Defines custom look-and-feel for subscribe link using the following format variables: $topics , $url , $wikiname , $action |
formatunsubscribe | format | Serves same function as format , but allows the user to define a different format than subscribe . |
- The button toggles subscribe/unsubscribe if the user is already subscribed or vice versa. So after the next click on the button, the user will be unsubscribed. The plugin updates the subscription lists in WebNotify.
Access Controls
The guest user is not allowed to subscribe for notification.
You don't need
VIEW
access to the
WebNotify topic in order to subscribe to changes in a web, but you must have
CHANGE
access. If you want users to be able to subscribe or unsubscribe, but you don't want them to be able to modify their subscription or otherwise edit the
WebNotify topic, you can restrict
VIEW
access to
WebNotify. This will make it uneditable from the browser (but will not block
save
urls, so is not fully secure).
Note that permissions on individual topics are
not checked when subscription mails are sent out, so be very careful about who you allow to subscribe.
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this extension. The following instructions are for the administrator who installs the extension on the TWiki server.
- For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.
- Or, follow these manual installation steps:
- Download the ZIP file from the extension home on twiki.org (see below).
- Unzip
SubscribePlugin.zip
in your twiki installation directory.
- Set the ownership of the extracted directories and files to the webserver user.
- Install the dependencies (if any).
- Plugin configuration and testing:
- Run the configure script and enable the plugin in the Plugins section.
- Configure additional plugin settings in the Extensions section if needed.
- Test if the installation was successful using the examples provided.
Plugin Info
Related Topics: VarSUBSCRIBE,
TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences