• CFWebstore v6.50
  • Installing CFWebstore

  • Main Settings

  • Designing Your Store

    • » Overview
    • » Color Palettes
    • » Style Sheets
    • » Custom Layouts
    • » Category and Page layouts
    • » Option Picklists
  • Organizing Your Site

    • » Overview
    • » Categories
    • » Category Menus
    • » Pages
    • » Page Menus
  • Adding Your Products

    • » Overview
    • » Product Lists
    • » Product Form
    • » Display Tab
    • » Pricing and Info Tab
    • » Group Prices
    • » Quantity Discounts
    • » Product Options
    • » Product Addons
    • » Product Images
    • » Related Products
    • » Standar Product Options
    • » Standard Product Addons
    • » Custom Product Fields
    • » Product Copy
  • Product Reviews

    • » Overview
    • » Configure Product Reviews
    • » Reviewing Products
    • » Administration of Reviews
    • » Viewing Reviews
    • » User Management of Reviews
  • Store Specials, Discounts and Promotions

    • » Overview
    • » Discount Manager
    • » Additional Tips on Discounts
    • » Product promotions
  • Gift Certificates

    • » Overview
    • » Gift Certificate Setup
  • Adding Store Features

    • » Overview
    • » Feature List
    • » Feature Form
    • » Related Features
    • » Related Products
  • Feature Reviews

    • » Overview
    • » Feature Review Configuration
    • » Administration of Reviews
    • » Commenting on a Feature Article
    • » Viewing Comments
  • Protecting Your Content

    • » Overview
    • » Access Keys
    • » Memberships
  • Shopping Cart Settings

    • » Overview
    • » Shopping Cart Configuration
  • Tax Setting

    • » Overview
    • » Tax Configuration
  • Shipping Charges

    • » Overview
    • » Shipping Types
    • » Shipping Settings
    • » Shipping Table
    • » Country Shipping Rates
    • » Shipping Methods
    • » Free Shipping Promotion
    • » Additional Information on Shipping Rates
    • » UPS Shipping
    • » U.S.P.S. Shipping
    • » Fedex Shipping
    • » Intershipper Shipping
  • Payment Settings

    • » Overview
    • » Offline Orders
    • » PayPal Orders
    • » Credit Card Orders
  • Gift Registries

    • » Overview
    • » Gift Registries Configuration
  • Gift Wrapping

    • » Overview
    • » Gift Wrapping Configuration
  • Managing Your Orders

    • » Overview
    • » Pending Orders
    • » In Process Orders
    • » Billing Tab
    • » Purchase Orders / Drop Shipping Tab
    • » Filled Orders
    • » Search Tab
    • » Reports
  • Viewing and Editing Orders

    • » Overview
    • » Customer Details
    • » Order Status
    • » Shopping Cart Details
    • » Shipping Information
    • » Purchase Orders
    • » Edit Order Status Form
    • » Products Edit Form
    • » Order Edit Form
    • » Tax Edit Form
    • » Dropshipping Form
    • » Order Shipping Screen
  • User Management

    • » User Settings
    • » User Manager
    • » User Summary
    • » User Groups
    • » Setting Permissions
    • » Customer Addresses
    • » Accounts
    • » My Account Page
  • Store Emails

    • » Overview
    • » Bulk Emails
    • » Standard Email Text
  • Import / Export Functions

    • » Product Export
    • » Data Feeds
    • » Download Orders
    • » Users Export
    • » Product Import
  • Programmers Guide

    • » Why Fusebox?
    • » Overview
    • » Using FCKeditor
    • » Differences From Basic Fuseboxc
    • » Home Circuit
    • » Access Circuit
    • » Category Circuit
    • » Page Circuit
    • » Products Circuit
    • » Shopping Circuit
    • » Users Circuit
    • » Custom Tags
    • » Category Menus
    • » Page Menus
    • » Customizing Store Menus
    • » Store Searches
    • » Shared SSL
    • » Email Forms
    • » User Registrations
    • » Database Schema
    • » Reset Cache
    • » Error Handlers
    • » Store Security
    • » Adding New Payment Gateways
    • » Running CFWebstore Inside Mura CMS
    • » Typical Files Used for a Category Page
    • » Additional Code Tips
    • » Other Useful Sites and Products
Home Programmers Guide Category Menus

Category Menus

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:
 
  1. 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)
  2. menu_class – CSS style class to use for text menus (menu_category)
  3. menu_text – Use a text menu, turn off to use images from the small title image settings (1)
  4. menu_orientation – Determines whether to use a vertical or horizontal menu (vertical)
  5. menu_type – Menu type, either a normal list menu, or a selectbox menu that will jump to the one selected (normal)
  6. 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:
 
<cfset CatMenu = Application.objMenus.dspCatMenu(menu_orientation:'horizontal', menu_text:0', menu_class:'menu_footer')>
 
<cfoutput>#CatMenu#</cfoutput>
 
 
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:
 
Application.objMenus.xmlCatTreeCreator();
 
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. 



Custom Tags
Page Menus