wiki:MindMapMacro

Version 9 (modified by martin_s, 4 years ago) (diff)

--

Draw mind maps using wiki list syntax

Description

This macro can be used to include mind maps into wiki pages and other wiki-enabled Trac elements. The mind maps are displayed using a flash application.

Two input methods are supported:

  • the normal macro form awaits a TracLink (e.g. attachment:file.mm) to a Freemind file.
  • the long form reads and converts a wiki lists into a Freemind mindmap and displays it.

This version was written for Trac 0.11 but should also work for 0.12.

See also the similar FreemindMacro.

Requirements

Bugs/Feature Requests

Existing bugs and feature requests for MindMapMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out MindMapMacro from here using Subversion, or browse the source with Trac.

Usage

See the example section.

The following options are supported:

width
Width of mind map (i.e. its flash application).
height
Height of mind map (i.e. its flash application). Percent values will not work.
flashvars
List of flashvars for the flash application separated by "|". Possible values are:

  • startCollapsedToLevel: (Default 5) Level of collapsed mindmap branched.
  • ...

Example

Short Form

[[MindMap(attachment:file.mm,width=60%,height=400px)]]

[[MindMap(source:/dir/file.mm,width=60%,height=400px)]]

[[MindMap(<any other TracLink>,width=60%,height=400px)]]

[[MindMap(<anything else which returns a link inside a Trac Wiki>,width=60%,height=400px)]]
Result of example code.

Long Form

{{{
#!MindMap
width=60%,height=400px,flashvars="startCollapsedToLevel=4|someothervar=2"

TestMindMap
 *(position=right,color=#00FF00) A
  * a
   * b
   * e
  * c
 *(position=right,color=#00FF00) B
  * a
  * b
   * i
   * v
  * c
 *(position=left,color=#00FF00) C
  * a
  * b
  * c
}}}

Recent Changes

[13653] by rjollos on 2014-02-11 02:40:53
Added ExtractUrlPlugin to install requirements. Refs #7481.
[13652] by rjollos on 2014-02-11 02:40:49
Normalized to 4-space indentation using reindent.py. Refs #7481.
[13651] by rjollos on 2014-02-11 02:40:45
Fixed database tables would not be added because test for table existence was not compatible with Trac 1.0. Refs #7481.

Author/Contributors

Author: martin_s
Maintainer: martin_s
Contributors:

Attachments (2)

Download all attachments as: .zip