wiki:MindMapMacro

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.

The following input methods are supported:

  1. the normal macro form expects a TracLink to a Freemind file, for example attachment:file.mm.
  2. the long form reads and converts a wiki lists into a Freemind mindmap and displays it.

This version was written for Trac 0.11 and also works for Trac 0.12.

See also: FreeMindEmbeddingTutorial, FreemindMacro.

Usage

1. Macro 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.

2. Long Form

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

TestMindMap
 *(position=right,color=#00FF00) A
  * a
   * b
   * e
  * <html><img src="https://trac-hacks.org/chrome/site/trachacks_banner.png">
 *(position=right,color=#00FF00) B
  * a
  * b
   * i
   * v
  * c
 *(position=left,color=#00FF00) C
  * a
  * b
  * c
}}}

Options

The following options are supported:

Options Description Default
width Width of FreeMind window. [%] 100%
height Height of FreeMind window. [px] 600px
border Draws (1) a border arround FreeMind window as defined at CSS's border: section. Do not draw (0). [0,1] 0
flashvars List of flashvars for the flash application separated by "|"
Possible values are:
startCollapsedToLevel Level of collapsed mindmap branched 5
openUrl T.B.D. blank
someothervar Some other variable FreeMind allows N.A.

Bugs/Feature Requests

Existing bugs and feature requests for MindMapMacro are here.

If you have any issues, create a new ticket.

defect

4 / 5

enhancement

0 / 1

Download

You can download the zipped source from here.

Source

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

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Requirements

Installation steps

  1. Install
    • Dependencies: install ExtractUrlPlugin globally with:
      sudo easy_install https://trac-hacks.org/svn/extracturlplugin/0.11/
      
    • Plugin installation with easy_install:
      sudo easy_install https://trac-hacks.org/svn/mindmapmacro/0.11/
      
  2. Enable
    • Update TracIni file (../conf/trac.ini) with:
      [components]
      tracextracturl.* = enabled
      tracmindmap.* = enabled
      
  3. Restart web server:
    sudo /etc/init.d/apache2 restart
    

Recent Changes

15575 by rjollos on 2016-06-06 06:51:58
0.5dev: Use bundled jQuery-UI if available

Patch by Jun Omae.

Refs #11823.

15574 by rjollos on 2016-06-06 06:28:10
0.5dev: Remove unused svn:keywords
15573 by rjollos on 2016-06-06 06:25:28
0.5dev: Require Trac >= 0.11
(more)

Author/Contributors

Author: martin_s
Maintainer: Martin Scharrer
Contributors:

Last modified 4 months ago Last modified on Mar 22, 2016, 10:50:18 PM

Attachments (2)

Download all attachments as: .zip