This is a plugin that you can use to hide a block of text in the edit page, so that the text cannot be edited or changed unless the user has the access permission. The text is still rendered in the view page.
%STARTHIDDEN% <!-- * Restrict who can see/edit the hidden text * Set ALLOWTOPICHIDDEN = Main.JoeSomebody --> Hello World %ENDHIDDEN%
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%
, for example, %HIDDENTEXTPLUGIN_SHORTDESCRIPTION%
data/debug.txt
)
Note: The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
HiddenTextPlugin.zip
in your twiki installation directory. Content:
File: | Description: |
---|---|
data/TWiki/HiddenTextPlugin.txt | Plugin topic |
data/TWiki/HiddenTextPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/HiddenTextPlugin.pm | Plugin Perl module |
Plugin Author: | TWiki:Main/DonnyKurniawan |
Plugin Version: | 04 Oct 2003 (V1.001) |
Change History: | |
04 Oct 2003: | Change the syntax so that the hidden block can include '}%' |
03 Oct 2003: | Initial version |
CPAN Dependencies: | none |
Other Dependencies: | none |
Perl Version: | 5.005 |
Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/HiddenTextPlugin |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/HiddenTextPluginDev |
Related Topics: TWikiPreferences, TWikiPlugins
-- DonnyKurniawan? - 03 Oct 2003