\ProductCategory_Controller
Controller to display a ProductCategory and retrieve its Products.
Synopsis
class ProductCategory_Controller
extends Page_Controller
{
- // members
- public static Int $products_per_page = 12;
- public static string $products_ordered_by = "\"SiteTree\".\"ParentID\" ASC, \"SiteTree\".\"Sort\" ASC";
Hierarchy
Extends
- Page_Controller
Members
public
- $products_ordered_by
- $products_per_page
—
Int
Set number of products per page displayed in ProductCategory pages
Methods
public
- Products() — Get Products that have this ProductCategory set or have this ProductCategory as a parent in site tree.
- init() — Include some CSS.