Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Main
Sandbox
TWiki
You are here:
FS
>
TWiki Web
>
RenderListPlugin
r1 - 04 Dec 2003 - 06:38 -
PeterThoeny
?
View topic
|
Edit
Attach
P
rintable
Start of topic |
Skip to actions
---+ Render List Plugin Render bullet lists in a variety of formats ---++ Syntax Rules * Put a =%<nop>RENDERLIST{ theme="name" }%= or simply =%<nop>RENDERLIST{"name"}%= before any bullet list * The lists can be handcrafted, generated by another Plugin, a =%<nop>TOC%=, or the result of a %TWIKIWEB%.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 <table border="0" cellspacing="5" cellpadding="3"><tr><th valign="top" bgcolor="#CCCCC"> __You type:__ </th><th valign="top" bgcolor="#CCCCC"> __You get: (simulated)__ </th><th valign="top" bgcolor="#CCCCC"> __You get: (if installed)__ </th></tr> <tr><td valign="top" bgcolor="#EEEEEE"> <pre> %<nop>RENDERLIST{"thread"}% * one * one.a * one.a.x * one.b * one.b.x continue * one.b.y continue * two * three </pre> </td><td valign="top" bgcolor="#EEEEEE"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> one </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="2" valign="top"><nobr> one.a </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.a.x </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="2" valign="top"><nobr> one.b </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.b.x </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> continue </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.b.y </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> continue </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> two </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> three </nobr></td></tr> </table> </td><td valign="top" bgcolor="#EEEEEE"> %RENDERLIST{"thread"}% * one * one.a * one.a.x * one.b * one.b.x continue * one.b.y continue * two * three </td></tr> <tr><td valign="top" bgcolor="#EEEEEE"> <pre> %<nop>RENDERLIST{"org"}% * one * one.a * one.a.x * one.b * one.b.x continue * one.b.y continue * two * three </pre> </td><td valign="top" bgcolor="#EEEEEE"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> one </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="2" valign="top"><nobr> one.a </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.a.x </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="2" valign="top"><nobr> one.b </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_udr.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.b.x </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ud.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> continue </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/dot_ur.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> one.b.y </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td valign="top"><img src="%ATTACHURL%/empty.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="1" valign="top"><nobr> continue </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> two </nobr></td></tr> <tr><td valign="top"><img src="%ATTACHURL%/home.gif" width="16" height="16" alt="" border="0" /></td> <td colspan="3" valign="top"><nobr> three </nobr></td></tr> </table> </td><td valign="top" bgcolor="#EEEEEE"> %RENDERLIST{"org"}% * one * one.a * one.a.x * one.b * one.b.x continue * one.b.y continue * two * three </td></tr></table> ---++ <nop>%TOPIC% Settings Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, i.e. ==%<nop>RENDERPLUGIN_SHORTDESCRIPTION%== * One line description, is shown in the %TWIKIWEB%.TextFormattingRules topic: * Set SHORTDESCRIPTION = Render bullet lists in a variety of formats * Debug plugin: (See output in =data/debug.txt=) * Set DEBUG = 0 * 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, %ATTACHURL%/empty.gif, %ATTACHURL%/dot_udr.gif, %ATTACHURL%/dot_ud.gif, %ATTACHURL%/dot_ur.gif, %ATTACHURL%/home.gif * Set ORG_THEME = icon, 0, 16, 16, %ATTACHURL%/empty.gif, %ATTACHURL%/dot_udr.gif, %ATTACHURL%/dot_ud.gif, %ATTACHURL%/dot_ur.gif, %ATTACHURL%/home.gif * Set GROUP_THEME = icon, 0, 16, 16, %ATTACHURL%/empty.gif, %ATTACHURL%/dot_udr.gif, %ATTACHURL%/dot_ud.gif, %ATTACHURL%/dot_ur.gif, %ATTACHURL%/group.gif ---++ 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 ==%TOPIC%.zip== in your twiki installation directory. Content: | *File:* | *Description:* | | ==data/TWiki/%TOPIC%.txt== | Plugin topic | | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository | | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module | | ==pub/TWiki/%TOPIC%/*.gif== | Image files for themes | * Test if the installation was successful: * See if the above example works ---++ Plugin Info | Plugin Author: | TWiki:Main/PeterThoeny | | Plugin Version: | 02 Dec 2003 (V1.000) | | Change History: | <!-- versions below in reverse order --> | | 02 Nov 2003: | Initial version | | CPAN Dependencies: | none | | Other Dependencies: | none | | Perl Version: | 5.005 | | Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% | | Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev | __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins, TWiki:Plugins/TreePlugin -- TWiki:Main/PeterThoeny - 02 Dec 2003
End of topic
Skip to actions
|
Back to top
Show attachments
Hide attachments
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
gif
pdf.gif
manage
0.9 K
31 Dec 2005 - 07:46
UnknownUser
gif
email.gif
manage
0.2 K
31 Dec 2005 - 07:45
UnknownUser
gif
xls.gif
manage
0.9 K
31 Dec 2005 - 07:48
UnknownUser
gif
file.gif
manage
0.1 K
31 Dec 2005 - 07:45
UnknownUser
gif
persons.gif
manage
0.2 K
31 Dec 2005 - 07:47
UnknownUser
gif
sound.gif
manage
0.2 K
31 Dec 2005 - 07:47
UnknownUser
gif
folder.gif
manage
0.9 K
31 Dec 2005 - 07:45
UnknownUser
gif
person.gif
manage
0.1 K
31 Dec 2005 - 07:47
UnknownUser
gif
doc.gif
manage
0.9 K
31 Dec 2005 - 07:44
UnknownUser
gif
zip.gif
manage
0.9 K
31 Dec 2005 - 07:48
UnknownUser
gif
virtualpersons.gif
manage
0.2 K
31 Dec 2005 - 07:48
UnknownUser
gif
image.gif
manage
0.9 K
31 Dec 2005 - 07:46
UnknownUser
gif
virtualperson.gif
manage
0.1 K
31 Dec 2005 - 07:48
UnknownUser
gif
see.gif
manage
0.1 K
31 Dec 2005 - 07:47
UnknownUser
gif
trend.gif
manage
0.1 K
31 Dec 2005 - 07:48
UnknownUser
gif
virtualhome.gif
manage
0.2 K
31 Dec 2005 - 07:48
UnknownUser
gif
ppt.gif
manage
0.9 K
31 Dec 2005 - 07:47
UnknownUser
gif
globe.gif
manage
1.0 K
31 Dec 2005 - 07:46
UnknownUser
View topic
|
Edit
|
Attach
|
P
rintable
|
R
aw view
|
Backlinks:
We
b
,
A
l
l webs
|
H
istory
:
r8
|
r4
<
r3
<
r2
<
r1
|
More topic actions...
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding FS?
Send feedback