Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #111

How can I get TreeMenu Magic to only show one submenu at a time, closing any other submenus that may be open? a toggle?

The Answer

Prepared Oct. 2003 by Gerry Jacobsen, PVII

Note: This functionality is included and fully automated in the more recent Tree Menu Magic 2 system, simply click the "Toggle Sub Menus" option in the TMM2 user interface.

*Last Revised Mar. 3, 2004 - This tweak replaces the previous method. This version allows full toggle on all levels of the menu.

There are occasions when you would like the TMM system to automatically toggle the open submenu each time you click a menu button. This will assure that only one menu section is open at any time. This tweak will create a complete, full toggle for every section and level in the menu. When a link is clicked, all other open menu sections in the menu will be closed while keeping all of the parent sections of this link open.

You can tweak the TreeMenu Magic system to toggle the submenu by using the special JavaScript function, P7_TMfull().

See the TMM FullToggle Tweak page for a working demo and step-by-step instructions:

Note that this Full Toggle tweak will assure that only one menu section is open at a time, consequently it will interfere with the Expand-All and Collapse-All TMM behaviors. It is recommended that you do not use the Expand/Collapse All feature when deploying the menu with the Full Toggle tweak.

Back to the questions list