Tree :



 Faceted index, by topics :
Menu

 
Category
V5 (46)
V5.01 (21)
V5.10 (15)
V5.20 (32)
V5.30 (16)
V5.31 (1)
V5.32 (4)
V5.33 (16)
V5.34 (7)
V5.35 (2)
V5.40 (27)
V5.41 (7)
V5.42 (4)
V5.43 (6)
V5.50 (1)
V5.60 (1)
V5.61 (2)
V5.70 (9)
V5.71 (4)
 
 How to insert these widgets?

      5. Reference
          5.10. Structure templates
              5.10.4. Other structural elements : Widgets
 5.10.4.2. Simple Tree Menu widget  

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 :

  1. Use short titles for the three first levels of ideas, if you want to avoid text wrapping.
  2. Check/uncheck ideas for making them eligible for the tree menu (as well as for table of contents).
  3. When adding new ideas or changing titles, the tree menu is automatically updated.
  4. You can insert only one tree menu per page (the second one will be shown with expanded entries and no way to collapse them).
  5. 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).

 

Keywords :  JavaScript ; Menu ; Tree menu ; Widget
Tasks
Start date2007/11/01
Due date2007/11/01
Percent finished100 %
Effective end date2007/11/01
CategoryV5.20