FreeMind MediaWiki Extension

From SwinBrain

Mind maps (related to concept maps and concept mapping) are a great way to map out a collection of concepts. There are several tools available to help do this. We are using a MediaWiki extension, Dimitry Polivaev, that uses either flash or an applet to display .mm XML files, created by the tool FreeMind, in a web browser.

Contents

Getting the Extension

The mediawiki extension code to support freemind is available via CVS at sourceforge.

In order to get the FreeMind.php extension code to work for our older version of mediawiki, we had to edit the following line. (This may help others).

//$img = new Image($url); // cjw - does't work in this version
    $img = Image::newFromName($url); // call this constructor instead 

I also cleaned up code to generate XHTML 1.0 valid output.

Help From the Code

MM MindMap Syntax:

  • <mm>[[{name}|{options}|parameters {parameters}]]</mm>
  • <mm>[[:{name}|{options}|parameters {parameters}]]</mm>

Examples:

  • <mm>[[Hello.mm]]</mm>
  • <mm>[[Hello.mm|flash]]</mm>
  • <mm>[[Hello.mm|applet]]</mm>
  • <mm>[[Hello.mm|flash|80pt]]</mm>
  • <mm>[[Hello.mm|applet|150|title example map]]</mm>
  • <mm>[[:Hello.mm]]</mm>
  • <mm>[[:Hello.mm|description]]</mm>
  • <mm>[[:Hello.mm|flash|title the map in flash|map in flash]]</mm>

Examples

Simple Embedded Example

<mm>[[Hello.mm]]</mm>

Hello.mm

Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap

Size and Title examples

<mm>[[Hello.mm|flash|150px]]</mm>

Hello.mm

Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap

<mm>[[Hello.mm|flash|150px|Hello.mm Example]]</mm>

Hello.mm

Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap

Link To Window

<mm>[[:Hello.mm|Description]]</mm> Description

<mm>[[:Hello.mm|flash|title the map in flash|Map in flash]]</mm> Map in flash