TouchGraphPlugin
керкеренренрен
This plugin is based on TWiki:Plugins/TouchGraphAddOn
. Instead of a standalone java app with its own HTML browser, TouchGraphPlugin provides a popup window containing an applet.
fffff
Advantages:
- no need to install anything but a Java Runtime on the clients.
- interacts with standard, full featured browsers instead of Java HTML component.
Syntax Rules
- Insert %TGPOPUP% where you'd like to have a link to a popup window containing the applet.
I have put it into the view action list (%TMPL:DEF{"topicaction"}% of /path/to/twiki/bin/view.tmpl).
You can still use the unmodified standalone TGWikiBowser as well e. g. from the command line:
java -jar /path/to/twiki/pub/TWiki/TouchGraphPlugin/TGWikiBrowser.jar \
http://biowiki.org/twiki/pub/TWiki/touchgraph.txt http://biowiki.org/twiki/bin/view/TWiki/
Examples
Test it here: Graph .
The window popping up schould resemble this.
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Displays the relations between topics of a web in a TouchGraph applet
- Debug plugin: (See output in
data/debug.txt)
- You may redefine TGPOPUP to your needs.
* Set TGPOPUP = <a target="wikigraph" onClick="open('%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=tglaunch', 'wikigraph', 'titlebar=0,width=600,height=600,resizable,scrollbars'); return false" accesskey=g title="[Alt-g] Graphical view of this page" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=tglaunch title="The topology of the topics in this web (java applet)">Graph</a>
* Previously: <a target="wikigraph" onClick="open('%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=tglaunch', 'wikigraph', 'titlebar=0,width=600,height=600,resizable,scrollbars'); return false" accesskey=g title="[Alt-g] Graphical view of this page" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=tglaunch title="The topology of the topics in this web (java applet)"><img src="%PUBURLPATH%/icn/graph.gif"/>Graph</a>
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
TouchGraphPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
data/TWiki/TouchGraphPlugin.txt | Plugin topic |
data/TWiki/TouchGraphPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/TouchGraphPlugin.pm | Plugin Perl module (almost empty) |
bin/tgdb | database generator for the TouchGraphBrowser |
data/TWiki/TouchGraphAppletInstructions.txt | howto use the applet |
pub/TWiki/TouchGraphPlugin/TGWikiBrowser.jar | applet code |
pub/TWiki/TouchGraphPlugin/touchgraph_applet.png | screenshot |
pub/TWiki/TouchGraphAppletInstructions/kill.png | icon for the applets stop button |
templates/view.tglaunch.tmpl | special skin for popup window |
- Edit your crontab to schedule
/path/to/twiki/bin/tgdb like mailnotify, e. g.: 4,19,34,49 * * * * cd /path/to/twiki/bin; ./tgdb > /dev/null
- You'll get an applet error unless you have run
tgdb once.
Plugin Info
Related Topics: TWikiPreferences, TWikiPlugins, TWiki:Plugins/TouchGraphAddOn
-- TWiki:Main/ChristopherHuhn - 03 Mar 2004 |