%SUBSCRIBE{...}%
or simply %SUBSCRIBE%
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 the Main web. |
unsubscribe | Not set | If set to "on", will unsubscribe the user |
templates/subscribe.tmpl
. The normal skin mechanisms can be used to override this with your own local definitions. The default template works with Javascript to provide a smooth interactive experience.
The format
and formatunsubscribe
parameters have been removed and will
be ignored. The version of PatternSkin shipped with Foswiki 1.1.9 used these
parameters.
Note: This subscribe macro is for adding and removing individual subscriptions. It is not aware of subscriptions due to membership in a subscribed group. If a user is subscribed to a topic due to group membership, the subscribe link will show the user as subscribed,
but clicking it will not unsubscribe the individual user. If a user wishes to unsubscribe as an exception, manually add a "negative subscription" to the WebNotify topic. Ex: If JoeUser is a member of SomeGroup,
then the user can unsubscribe manually:
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.
Main,Sandbox.*
would permit the Main web, Sandbox, including subwebs of Sandbox, or any web prefixed with Sandbox.
Extensions
tab -> SubscribePlugin
sub-tab {Plugins}{SubscribePlugin}{ActiveWebs} = "Main,Sandbox.*
Set SUBSCRIBEPLUGIN_ACTIVEWEBS = Main,Sandbox.*
templates/subscribe.tmpl
, which can be overridden using the standard Foswiki skins mechanisms.
.../rest/SubscribePlugin/subscribe
Parameters: subscribe_topic
topic to subscribe to/unsubscribe from. Value of topic
parameter is used if missing. Use Web.Topic format to specify a web.
subscribe_subscriber
WikiName of user to subscribe/unsubscribe. Current user is used if missing.
subscribe_remove
true to unsubscribe. Default is to subscribe.
cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
A word of warning; if you used SubscribePlugin before version 3.1, please note that the use of GET requests for subscriptions is no longer supported. That means that Javascript must to be available in the browser..
Dependencies: |
|
|||||||||
Change History: | ||||||||||
3.6 (08 Dec 2017) | |
|||||||||
3.5 (06 Nov 2015) | |
|||||||||
3.4 (27 Jul 2015) | |
|||||||||
3.3 (04 May 2015) | |
|||||||||
3.2 (24 Nov 2014) | |
|||||||||
3.1 (28 Apr 2014) | |
|||||||||
3.0 (14 Mar 2013) | |
|||||||||
2.0 (03 Mar 2012) | GeorgeClark - |
|||||||||
1.0 (03 Dec 2008) | Released for Foswiki |