Extension talk:TreeAndMenu

From Organic Design wiki
Revision as of 03:26, 17 April 2008 by Nad (talk | contribs) (explanation of new structure)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Info.svg This talk page pertains specifically to the development of this extension. For more general discussion about bugs and usage etc, please refer to the mediawiki.org talk page at MW:Extension talk:TreeAndMenu


This extension is basically a new version of TreeView5 which adds a #menu parser function. The resulting structure when using #tree is the same as TreeView5 except that the CSS class of the surrounding div element is now tam-tree.

The structure resulting from #menu is basically a normal HTML list except that it's top-level UL element exhibits the tam-menu class (and an id attribute as well the same as with #tree). The main reason for extending TreeView5 to achieve what is little more than a normal bullet list is so that it can still take advantage of TreeView's ability to handle recursion properly when necessary. The resulting "plain vanilla" list can be combined with CSS rules to achieve a wide variety of effects. The Son of Suckerfish JavaScript code has been added by the extension so that dropdown menu's can be easily achieved with CSS rules.