SilverCommerce\CatalogueFrontend\Extensions\ControllerExtension
Extension for Controller that provide additional methods to all templates
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class ControllerExtension
extends Extension
{
- // methods
- public SS_List CatalogueCategories()
- public SS_List CatalogueMenu()
- public void CatalogueProducts()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- CatalogueCategories() — Gets a list of all Categories, either top level (default) or from a sub level
- CatalogueMenu() — Generate a list of categories that can be used in menus (this means that) categories are checked for their can view state before being returned
- CatalogueProducts() — Get a full list of products, filtered by a category if provided.