This section is where you will find the pages responsible for outputting category-related information as well as setting up and editing the store categories. Categories provide a hierarchal structure to the site. A category consists of a header section followed by a listing of content such as sub-categories, products or features. In fact, sub-categories, features and products can all be listed on a single category page. The fuseactions available from this circuit include:
category.display – This is the main function for displaying a category page. It requires the category ID for the category you wish to display. The actual pages used to display the category are determined by the category template you choose for the category. For instance, the standard category template for products uses the catcore_products.cfm page in the products directory.
category.topcatmenu – This has been replaced in version 6 with a CFC component for doing menus.
category.subcatmenu - Called as a custom tag on the layout page to insert a menu of the child categories of the currently displayed category. This fuseaction can accept a parameter, menu_text, to override the use of small title images and use text only. Also passed is the ID of the parent category to display the menu for.
category.related – This tag is used to output the listing of categories that a feature or product appears in. It is displayed at the bottom of the detail page with links to return to the categories. It requires two parameters, the detail type (product or feature) and the detail ID.
category.admin – The category admin function is where you can edit and add categories. The value of the category variable on the URL determines the admin function to be performed. For instance, fuseaction=category.admin&category=add is used to create a new category.