Render List Plugin
Render bullet lists in a variety of formats
Syntax Rules
RENDERLIST Variable
- Place a
%RENDERLIST{ <parameters> }% before any bullet list
- The lists can be handcrafted, generated by another Plugin, a
%TOC%, or the result of a FormattedSearch
- Supported parameters:
"name" or theme="name" | Select a rendering theme |
focus="any text" | Focus list on a bullet with specified text |
depth="2" | Remove bullets with an indent greater then the depth. The depth is relative to the highlighted bullet in case focus is specified |
- 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
- Focus bullet list:
- Search bullet list for text. If a bullet is found:
- Highlight text and remove
[[][]] links on bullet where text is found
- Reduce bullet list to show only its parents and children
- This is useful to maintain one large bullet list with links to team pages, representing the organization of a company. Each team page can INCLUDE the bullet list with focus set to itself.
Bullets
- Use regular
* bullets
- Start with level one
- Increase indentation only one level at a time
- Decreasing indentation many levels at a time is OK
- Wrap long text with continuation lines, the Plugin does not do that for you
Align continuation lines with leading spaces like this
- You can specify an icon for a bullet of render type tree or icon:
- Attach the icon to this Plugin topic, e.g.
myicon.gif, or
- Use one of the existing icons:
globe.gif,
home.gif,
virtualhome.gif,
group.gif,
persons.gif,
virtualpersons.gif,
person.gif,
virtualperson.gif,
email.gif,
trend.gif,
folder.gif,
folders.gif,
file.gif,
files.gif,
doc.gif,
image.gif,
pdf.gif,
ppt.gif,
sound.gif,
xls.gif,
zip.gif,
see.gif
- Refer to an attached icon at the beginning of the bullet with:
-
icon:myicon Followed by normal bullet text
- Any TWikiDocGraphics icon can be used as well:
-
%ICON{name}% Followed by normal bullet text
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,
,
,
,
,
- Set TREND_THEME = icon, 0, 16, 16,
,
,
,
,
- Set FILE_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 TWiki server.
- Download the ZIP file from the Plugin Home (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 |
- TWiki 4.0 and up: Run the configure script to enable the Plugin
- Test if the installation was successful: See if above examples work
Plugin Info
Related Topics: TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences,
TWiki:Plugins/TreePlugin
--
TWiki:Main/PeterThoeny - 30 Sep 2007
About This Site
Please note that this site is a content mirror of the BNL USATLAS TWiki. To edit the content of this page, click the Edit this page button at the top of the page and log in with your BNL USATLAS account.
Attachments
empty.gif (0.1K) |
PeterThoeny, 02 Dec 2003 - 11:51 | Empty 16x16 spacer
email.gif (0.2K) |
PeterThoeny, 05 Dec 2003 - 04:02 | E-mail icon 16x16
xls.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:33 | XLS icon 16x16
file.gif (0.1K) |
PeterThoeny, 01 Mar 2004 - 12:04 | File icon 16x16
person.gif (0.1K) |
PeterThoeny, 16 Dec 2003 - 04:07 | Person icon 16x16
doc.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:09 | Doc icon 16x16
virtualpersons.gif (0.2K) |
PeterThoeny, 29 Dec 2003 - 05:24 | Virtual persons icon 16x16
virtualperson.gif (0.1K) |
PeterThoeny, 29 Dec 2003 - 05:24 | Virtual person icon 16x16
group.gif (0.2K) |
PeterThoeny, 16 Dec 2003 - 04:07 | Group icon 16x16
dot_ur.gif (0.1K) |
PeterThoeny, 02 Dec 2003 - 11:53 | Dot L-graph 16x16
ppt.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:05 | PPT icon 16x16
pdf.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:04 | PDF icon 16x16
dot_udr.gif (0.1K) |
PeterThoeny, 02 Dec 2003 - 11:54 | Dot T-graph 16x16
persons.gif (0.2K) |
PeterThoeny, 16 Dec 2003 - 04:07 | Two persons icon 16x16
sound.gif (0.2K) |
PeterThoeny, 01 Mar 2004 - 12:05 | Sound icon 16x16
home.gif (0.2K) |
PeterThoeny, 02 Dec 2003 - 11:53 | Home icon 16x16
folder.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:03 | Folder icon 16x16
zip.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:05 | ZIP icon 16x16
image.gif (0.9K) |
PeterThoeny, 01 Mar 2004 - 12:04 | Image icon 16x16
see.gif (81b) |
PeterThoeny, 01 Mar 2004 - 12:16 | See icon 16x16
trend.gif (0.1K) |
PeterThoeny, 23 Dec 2003 - 04:49 | Trend icon 16x16
dot_ud.gif (0.1K) |
PeterThoeny, 02 Dec 2003 - 11:52 | Dot I-graph 16x16
virtualhome.gif (0.2K) |
PeterThoeny, 29 Dec 2003 - 05:23 | Virtual home icon 16x16
globe.gif (1.0K) |
PeterThoeny, 27 Jan 2004 - 05:33 | Globe icon 16x16
folders.gif (0.9K) |
PeterThoeny, 23 Sep 2006 - 02:11 | Folders icon 16x16
files.gif (0.9K) |
PeterThoeny, 23 Sep 2006 - 02:12 | Files icon 16x16