When you insert one of the WIT variables :
- < @ treeWidgetLevel1/>
- < @ treeWidgetLevel2/>
- < @ treeWidgetLevel3/> (professional edition only)
- < @ treeWidgetLevel4/> (professional edition only)
- < @ treeWidgetLevelN/> (professional edition only)
WIT replaces them at build time by a block containing :
- a tree menu of child ideas, limited to sublevels 1, 2, 3, 4 or N (N = no limit).
- like in this document (left pane).
The best places to insert this widget are the left or right page panes.
If your web browser accepts cookies, the state of the tree is persistent : opened branches remain open as you navigate to new pages.
The presentation styles of the Simple Tree Menu are controlled in the style template.
Notes :
- Use short titles for the three first levels of ideas, if you want to avoid text wrapping.
- Check/uncheck ideas for making them eligible for the tree menu (as well as for table of contents).
- When adding new ideas or changing titles, the tree menu is automatically updated.
- You can insert only one tree menu per page (the second one will be shown with expanded entries and no way to collapse them).
- The JavaScript for this menu is provided with kind permission of www.dynamicdrive.com where you can download the original code for Simple Tree Menu (slight adaptations on paths and CSS styles were
necessary for integration into WIT).
Possible performance issue on large documents (several hundreds of pages) :
Using deep levels in the tree menu can lead to huge lists of links, slowing the navigation within WIT (since it has to maintain the list), and weighting the generated web pages. To avoid this, you may :
- reduce the depth of your tree,
- uncheck ideas (many of them),
- or use instead the Java Applet menu, which is displayed in a separate frame and is built and loaded once (see the structure template : generic tab).