Contents
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 and also works for 0.12.
See also the similar FreemindMacro.
Usage
A. 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)]]
B. Long Form
{{{
#!MindMap
width=60%,height=400px,flashvars="startCollapsedToLevel=4|someothervar=2"
TestMindMap
*(position=right,color=#00FF00) A
* a
* b
* e
* <html><img src="http://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 | Descrição | 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. |
Install
Generic installation guidelines are troubleshooting can be found at TracPlugins.
Steps to install and configure this plugin are:
- Install
- Dependencies:
- ExtractUrlPlugin. Install globally with:
$ sudo easy_install https://trac-hacks.org/svn/extracturlplugin/0.11/
- ExtractUrlPlugin. Install globally with:
- Plugin:
- with easy_install:
$ sudo easy_install https://trac-hacks.org/svn/mindmapmacro/0.11/
- with easy_install:
- Dependencies:
- Enable
- Update TracIni file (..../trac.ini) with:
tracextracturl.* = enabled tracmindmap.* = enabled
- Update TracIni file (..../trac.ini) with:
- Restart web server:
$ sudo /etc/init.d/apache2 restart
Requirements
- ExtractUrlPlugin
- Flash Plugin v6 or higher
- Javascript or w3.org compatible browser (i.e. Internet Explorer with Javascript disabled won't work)
Bugs/Feature Requests
Existing bugs and feature requests for MindMapMacro are here.
If you have any issues, create a new ticket.
Source & Download
You can check out MindMapMacro from here using Subversion, or browse the source with Trac.
You can also download the zipped source from here.
Recent Changes
[9152] by martin_s on 09/26/10 22:59:50
- 0.11/tracmindmap/macro.py
- Introduced utf-8 encoding to fix #7736.
[8550] by martin_s on 08/30/10 23:57:49
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.
[8426] by martin_s on 08/23/10 13:12:05
Removed outdated variable rev from setup file.
[8378] by martin_s on 08/20/10 15:22:32
Removed import of source revisions to avoid installation issues.
Author/Contributors
Attachments
- example_mindmap.png (33.9 kB) -
Result of example code.
, added by martin_s on 11/04/09 02:23:26. - example_mindmap.2.png (19.5 kB) -
Resulting example
, added by AdrianFritz on 04/29/11 05:31:55.

