This action allows you to display mindmaps created by
FreeMind
You will also need the
freemindbrowser applet
The code is based on
Wikka Mod 039
It assumes that the user has the privilege to upload files to a server outside of wackowiki, or that the admin has already created a directory which contains the browser applet, and the appropriate .htaccess file.
Sample page
Code on the sample page to invoke the mindmap
{{mindmap jar="http://www.oxon.bcs.org/WebCompMindMap/freemindbrowser.jar"
url="http://www.oxon.bcs.org/WebCompMindMap/webcomp.mm"}}
Create a file called mindmap.php with the following contents and place it in the actions directory.
See the comments for usage instructions.
/actions/mindmap.php
<!-- usage: {{mindmap jar="jar" url="url"}} // where url is the URL of the Freemind .mm file // and jar is the URL of the freemindbrowser.jar file. // The freemindbrowser.jar file must have been installed on the same server as // the mindmap itself, for Java security reasons. // If you install the browser jar file in a subdirectory of the wiki root, // you will need an htaccess file specifying RewriteEngine Off --> <script language="JavaScript"> <!-- if(!navigator.javaEnabled()) { document.write('Please install a <a href="http://www.java.com/">Java Runtime Environment</a> on your computer.'); } //--> </script> <applet code="freemind.main.FreeMindApplet.class" print ("archive=\"$jar\" width=\"100%\" height=\"600\">"); <param name="type" value="application/x-java-applet;version=1.4" /> <param name="scriptable" value="false" /> <param name="modes" value="freemind.modes.browsemode.BrowseMode" /> <param name="browsemode_initial_map" print("value=\"$url\" />"); <param name="initial_mode" value="Browse" /> </applet> <br /> <span class="notes">Download print ("<a href=\"$url\">"); this mind map</a> and use the desktop application of <a href="http://freemind.sourceforge.net/">Freemind</a> to edit it.<br/> Note that this freemindbrowser applet is downlevel compared to Freemind itself. You will have to download the application to see notes associated with the nodes. </span>