wiki:MindMapMacro

Version 10 (modified by Ryan J Ollos, 14 years ago) (diff)

Added pageoutline.

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 [download:mindmapmacro 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

17116 by rjollos on 2018-04-13 00:16:00
TracMindMapMacro 1.2.0dev: Fix some parsing errors

Conform to PEP8 and refactor code.

17108 by rjollos on 2018-04-10 21:55:44
TracMindMapMacro 1.2.0dev: Add dependency link for TracExractUrl
16368 by rjollos on 2017-03-23 00:49:19
Fix _get_tables not working with MySQL
(more)

Author/Contributors

Author: martin_s
Maintainer: martin_s
Contributors:

Attachments (1)

Download all attachments as: .zip