17 April 2008
TreeAndMenu extension
I've needed to create parser-functions a number of times which allow the rendering of dynamic menu's. Each time I've created a specific extension for the job and have used code from TreeView to achieve it, so finally I bit the bullet and merged the best JavaScript dynamic menu I've found (Sons of Suckerfish) into the TreeView code base, and renamed the extension from TreeView5 to TreeAndMenu.
The TreeAndMenu extension allows bullet lists to be rendered as folder trees or dynamic drop-down menu's. It has been tested successfully on MediaWiki versions 1.6.10, 1.8.4, 1.9.3, 1.10.2, 1.11.0 and 1.12.0. And is known to work on Safari, IE6, IE7 and all Mozilla based browsers such as Firefox and SeaMonkey.
Screenshot showing a tree on the left and a dynamic drop-down menu on the right
- See also
- Extension:TreeAndMenu.php - the extension code
- MW:TreeAndMenu - installation and usage notes
- Extension talk:TreeAndMenu.php - development notes and other technical information about the extension
- dTree - the JavaScript component used to render tree-view's
- Sons of Suckerfish - the JavaScript method used to render dynamic drop-down menu's