TopicLockPlugin
Adds 1-click function to lock down topics.
Usage
Put the %TOPICLOCK% macro anywhere in your topic or template. This macro gets expanded to either
- a link to lock down the topic (read/write access to current user only)
- a link to unlock the topic
- a note, that locking down is not allowed
WikiGuest is always forbidden to change the lock state.
This macro takes the following parameters (all are optional):
Parameter |
Explanation |
topic |
Default is the current topic. You can specify a different topic here. |
web |
Default is current web. You can specify a different topic here. |
lockformat |
Show this, if the topic is not locked and the user is allowed to lock it. |
unlockformat |
Show this, if the topic is locked. |
forbiddenlockformat |
Show this, if the topic is locked elsewhere or the current user is not allowed to set a lock. |
The format strings may contain a
$url
parameter which gets expanded to the locking-url.
$percnt
,
$dollar
and
$n
behave as expected.
Examples
%TOPICLOCK{ lockformat="[[$url][Lock this Topic]]" unlockformat="[[$url][Unlock this Topic]]" forbiddenformat="totally forbidden to lock this Topic" }%
Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Info
Many thanks to the following sponsors for supporting this work:
- Acknowledge any sponsors here