Render List Plugin
Render bullet lists in a variety of formats
Syntax Rules
- Put a
%RENDERLIST{ theme="name" }%
or simply %RENDERLIST{"name"}%
before any bullet list
- The lists can be handcrafted, generated by another Plugin, a
%TOC%
, or the result of a FormattedSearch
- Rendering themes can be defined by
<name>_THEME
Plugin settings
- Each theme is defined by a comma separated list containing the render type and parameters required by that render type
- There are different render types; this initial Plugin version has tree and icon render types
- Format of the tree render type:
-
Set <name>_THEME = tree, <0/1 flag to suppress/show lines of first level>
- Format of the icon render type:
-
Set <name>_THEME = icon, <0/1 flag to suppress/show lines of first level>, <icon width>, <icon height>, <spacer graph>, <T-line graph>, <I-line graph>, <L-line graph>, <icon image>
- To define new Icon themes, attach images to this Plugin topic and set the parameters accordingly
Examples
RenderListPlugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, i.e.
%RENDERPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Render bullet lists in a variety of formats
- Debug plugin: (See output in
data/debug.txt
)
- Themes are named
<SOMETHING>_THEME
and contain a comma delimited list of render type with parameters:
- Set THREAD_THEME = tree, 1
- Set HOME_THEME = icon, 1, 16, 16, , , , ,
- Set ORG_THEME = icon, 0, 16, 16, , , , ,
- Set GROUP_THEME = icon, 0, 16, 16, , , , ,
- Set EMAIL_THEME = icon, 0, 16, 16, , , , ,
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
- Download the ZIP file from the Plugin web (see below)
- Unzip
RenderListPlugin.zip
in your twiki installation directory. Content:
File: | Description: |
data/TWiki/RenderListPlugin.txt | Plugin topic |
data/TWiki/RenderListPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/RenderListPlugin.pm | Plugin Perl module |
pub/TWiki/RenderListPlugin/*.gif | Image files for themes |
- Test if the installation was successful:
- See if the above example works
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins,
TWiki:Plugins/TreePlugin
--
TWiki:Main/PeterThoeny - 05 Dec 2003