CFWebstore has two different options for building menus, both using a component to create the data or menu strings. The component is menus.cfc found in the cfcs/layout directory and is typically stored into application memory as objMenus.
The first option calls a menu function similar to the custom tag found in previous versions. The following parameters (with the default values in parens) are available:
rootcat – Parent ID for the categories you wish to display (use 0 to show top-level categories). This setting allows you to display sub-menus under another category. (0)
menu_class – CSS style class to use for text menus (menu_category)
menu_text – Use a text menu, turn off to use images from the small title image settings (1)
menu_orientation – Determines whether to use a vertical or horizontal menu (vertical)
menu_type – Menu type, either a normal list menu, or a selectbox menu that will jump to the one selected (normal)
separator – The separator to use for a horizontal menu (&##183;)
Here’s an example of how to output a horizontal, image menu on a page:
The second option is to use the function for creating an XML export of the category tree for your store. This is called by the function:
You can then use this XML to create any kind of cascading menu. The store comes with code that can easily be used for any nested-list based cascading menu (CSS/DHTML style menu). This code is found in the layouts/do_catmenu.cfm page. See the section below on Customizing Store Menus for more information.